Home
last modified time | relevance | path

Searched refs:Thread (Results 1 – 25 of 158) sorted by relevance

1234567

/ohos5.0/foundation/ai/ai_engine/services/common/platform/threadpool/source/
H A Dthread.cpp41 Thread::Thread() in Thread() function in OHOS::AI::Thread
47 Thread::~Thread() in ~Thread()
60 Thread::ThreadStatus Thread::Status() const in Status()
82 bool Thread::StartThread() in StartThread()
131 void Thread::StopThread() in StopThread()
144 bool Thread::StopThread(int timeOut) in StopThread()
170 void Thread::Run() in Run()
192 bool Thread::IsActive() const in IsActive()
214 bool Thread::IsRunning() const in IsRunning()
219 void Thread::Execute() in Execute()
[all …]
H A Dthread_pool.cpp65 std::shared_ptr<Thread> ThreadPool::Pop() in Pop()
69 std::shared_ptr<Thread> thread; in Pop()
71 Thread *ptr = nullptr; in Pop()
72 AIE_NEW(ptr, Thread); in Pop()
87 void ThreadPool::Push(std::shared_ptr<Thread> &thread) in Push()
/ohos5.0/foundation/multimedia/media_foundation/src/osal/task/pthread/
H A Dthread.cpp28 Thread::Thread(ThreadPriority priority) noexcept : id_(), name_(), priority_(priority), state_() in Thread() function in OHOS::Media::Thread
32 Thread::Thread(Thread&& other) noexcept in Thread() function in OHOS::Media::Thread
37 Thread& Thread::operator=(Thread&& other) noexcept in operator =()
49 Thread::~Thread() noexcept in ~Thread()
56 bool Thread::HasThread() const noexcept in HasThread()
62 void Thread::SetName(const std::string& name) in SetName()
104 bool Thread::IsRunningInSelf() in IsRunningInSelf()
111 void Thread::SetNameInternal() in SetNameInternal()
125 void* Thread::Run(void* arg) // NOLINT: void* in Run()
130 auto currentThread = static_cast<Thread *>(arg); in Run()
[all …]
/ohos5.0/foundation/multimedia/media_foundation/engine/foundation/osal/thread/
H A Dthread.cpp24 Thread::Thread(ThreadPriority priority) noexcept : id_(), name_(), priority_(priority), state_() in Thread() function in OHOS::Media::OSAL::Thread
28 Thread::Thread(Thread&& other) noexcept in Thread() function in OHOS::Media::OSAL::Thread
33 Thread& Thread::operator=(Thread&& other) noexcept in operator =()
44 Thread::~Thread() noexcept in ~Thread()
51 bool Thread::HasThread() const noexcept in HasThread()
56 void Thread::SetName(const std::string& name) in SetName()
61 bool Thread::CreateThread(const std::function<void()>& func) in CreateThread()
80 int rtv = pthread_create(&id_, &attr, Thread::Run, state_.get()); in CreateThread()
91 void Thread::SetNameInternal() in SetNameInternal()
106 void* Thread::Run(void* arg) // NOLINT: void* in Run()
/ohos5.0/foundation/multimedia/media_foundation/engine/include/foundation/osal/thread/
H A Dthread.h35 class Thread {
37 explicit Thread(ThreadPriority priority = ThreadPriority::HIGH) noexcept;
39 Thread(const Thread&) = delete;
41 Thread& operator=(const Thread&) = delete;
43 Thread(Thread&& other) noexcept;
45 Thread& operator=(Thread&& other) noexcept;
47 virtual ~Thread() noexcept;
/ohos5.0/foundation/multimedia/media_foundation/interface/inner_api/osal/task/
H A Dthread.h35 class Thread {
37 explicit Thread(ThreadPriority priority = ThreadPriority::HIGH) noexcept;
39 Thread(const Thread&) = delete;
41 Thread& operator=(const Thread&) = delete;
43 Thread(Thread&& other) noexcept;
45 Thread& operator=(Thread&& other) noexcept;
47 virtual ~Thread() noexcept;
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dthread_ex.cpp97 Thread::Thread() in Thread() function in OHOS::Thread
102 Thread::~Thread() in ~Thread()
106 ThreadStatus Thread::Start(const std::string& name, int32_t priority, size_t stack) in Start()
136 ThreadStatus Thread::NotifyExitSync() in NotifyExitSync()
156 void Thread::NotifyExitAsync() in NotifyExitAsync()
162 bool Thread::ReadyToWork() in ReadyToWork()
167 bool Thread::IsExitPending() const in IsExitPending()
173 bool Thread::IsRunning() const in IsRunning()
179 int Thread::ThreadStart(void* args) in ThreadStart()
181 Thread* const self = static_cast<Thread*>(args); in ThreadStart()
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/include/
H A Dthread.h31 typedef struct Thread Thread; typedef
41 Thread *ThreadCreate(const char *name);
49 void ThreadDelete(Thread *thread);
59 void ThreadPostTask(Thread *thread, TaskFunc func, void *context);
68 int32_t ThreadIsSelf(const Thread *thread);
77 Reactor *ThreadGetReactor(const Thread *thread);
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/linux/
H A Dthread_linux.c34 typedef struct Thread { struct
44 Thread *thread; argument
69 Thread *thread = startPromise->thread; in ThreadStartFunc()
99 int32_t ThreadIsSelf(const Thread *thread) in ThreadIsSelf()
109 static void ThreadStop(Thread *thread) in ThreadStop()
112 if (ThreadIsSelf((const Thread *)thread) == 0) { in ThreadStop()
123 Thread *ThreadCreate(const char *name) in ThreadCreate()
125 Thread *thread = (Thread *)calloc(1, (sizeof(Thread))); in ThreadCreate()
177 void ThreadDelete(Thread *thread) in ThreadDelete()
191 void ThreadPostTask(Thread *thread, TaskFunc func, void *context) in ThreadPostTask()
[all …]
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/taskpool/
H A Dthread.cpp25 Thread::Thread() : tid_() {} in Thread() function in Commonlibrary::Concurrent::TaskPoolModule::Thread
29 bool Thread::Start() in Start()
40 Thread* thread = reinterpret_cast<Thread*>(this); in Start()
53 Thread* thread = reinterpret_cast<Thread*>(arg); in Start()
H A Dthread.h22 class Thread {
24 Thread();
25 virtual ~Thread() = default;
/ohos5.0/commonlibrary/c_utils/base/include/
H A Dthread_ex.h53 class Thread {
60 Thread();
61 virtual ~Thread();
132 Thread(const Thread&) = delete;
133 Thread& operator=(const Thread&) = delete;
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/worker/
H A Dthread.cpp19 Thread::Thread() : tId_() {} in Thread() function in Commonlibrary::Concurrent::WorkerModule::Thread
21 bool Thread::Start() in Start()
29 Thread* thread = reinterpret_cast<Thread*>(arg); in Start()
H A Dthread.h22 class Thread {
24 Thread();
25 virtual ~Thread() = default;
/ohos5.0/foundation/ai/ai_engine/services/common/platform/threadpool/include/
H A Dthread.h30 class Thread; variable
112 void SetThread(Thread *thread) in SetThread()
122 Thread *thread_;
129 class Thread {
134 Thread();
135 virtual ~Thread();
H A Dthread_pool.h34 typedef std::list<std::shared_ptr<Thread>> Threads;
45 std::shared_ptr<Thread> Pop();
50 void Push(std::shared_ptr<Thread>& thread);
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/
H A Dc-utils-guide-thread.md15 ### OHOS::Thread
20 | | **Thread**()<br/>构造函数, 构造一个Thread对象,但并不会启动线程。 |
21 | | virtual **~Thread**()<br/>析构函数 |
49 class RealThread : public Thread { // 使用方继承虚基类并实现Run函数
H A Dc-utils-guide-safeMap.md72 string name = "Thread" + to_string(i);
112 // Thread 1:
115 // Thread 2:
123 // Thread 1:
/ohos5.0/docs/en/application-dev/reference/apis-performance-analysis-kit/
H A D_hi_debug___thread_cpu_usage.md20 | uint32_t [threadId](#threadid) | Thread ID. |
21 | double [cpuUsage](#cpuusage) | Thread CPU usage, in percentage. |
34 Thread CPU usage, in percentage.
52 Thread ID.
/ohos5.0/docs/en/application-dev/arkts-utils/
H A DReadme-EN.md24 - Inter-Thread Communication
25 - [ArkTS Inter-Thread Communication Overview](interthread-communication-overview.md)
26 - Inter-Thread Communication Objects
43 …- [Communication Between the TaskPool Task and Host Thread](taskpool-communicates-with-mainthread.…
44 …- [Instant Communication Between the Worker Thread and Host Thread](worker-communicates-with-maint…
45 …- [Worker Thread Synchronously Calling Methods of the Host Thread](worker-invoke-mainthread-interf…
/ohos5.0/foundation/ai/ai_engine/test/common/threadpool/
H A Dthread_pool_test.cpp125 Thread thread;
139 Thread testThread;
183 std::shared_ptr<Thread> oneThread = threadPool->Pop();
199 std::shared_ptr<Thread> oneThread = threadPool->Pop();
216 std::shared_ptr<Thread> threadList[maxThreadNum];
/ohos5.0/docs/en/application-dev/dfx/
H A Dhiappevent-watcher-crash-events.md42 | thread_name | string | Thread name.|
43 | tid | number | Thread ID.|
44 | frames | object[] | Thread call stack. For details, see **frame**.|
60 | thread_name | string | Thread name.|
61 | tid | number | Thread ID.|
62 | frames | object[] | Thread call stack. For details, see **frame**.|
H A Dhiappevent-watcher-mainthreadjank-events.md1 # Main Thread Jank Event Overview
5 - [Subscribing to Main Thread Jank Events (ArkTS)](hiappevent-watcher-mainthreadjank-events-arkts.m…
6 - [Subscribing to Main Thread Jank Events (C/C++)](hiappevent-watcher-mainthreadjank-events-ndk.md)
/ohos5.0/docs/en/application-dev/application-models/
H A Dthread-model-stage.md1 # Thread Model (Stage Model)
3 ## Thread Type
12 - [TaskPool Worker Thread](../reference/apis-arkts/js-apis-taskpool.md)
15 - [Worker Thread](../reference/apis-arkts/js-apis-worker.md)
28 ## Using EventHub for Intra-Thread Communication
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-standard-sched-rtg.md1 # Related Thread Group
6 The Related Thread Group (RTG) provides optimized scheduling of a group of important threads. The l…
26 ### Adding a Process or Thread to an RTG
47 STATE COMM PID PRIO CPU // Thread information, including the status, name, PID…

1234567