Lines Matching refs:Thread
16 #define HST_LOG_TAG "Thread"
23 constexpr OHOS::HiviewDFX::HiLogLabel LABEL = { LOG_CORE, LOG_DOMAIN_FOUNDATION, "Thread" };
28 Thread::Thread(ThreadPriority priority) noexcept : id_(), name_(), priority_(priority), state_()
32 Thread::Thread(Thread&& other) noexcept
37 Thread& Thread::operator=(Thread&& other) noexcept
49 Thread::~Thread() noexcept
56 bool Thread::HasThread() const noexcept
62 void Thread::SetName(const std::string& name)
67 bool Thread::CreateThread(const std::function<void()>& func)
89 int rtv = pthread_create(&id_, &attr, Thread::Run, this);
104 bool Thread::IsRunningInSelf()
111 void Thread::SetNameInternal()
125 void* Thread::Run(void* arg) // NOLINT: void*
130 auto currentThread = static_cast<Thread *>(arg);
141 auto currentThread = static_cast<Thread *>(arg);
145 MEDIA_LOG_W("Thread " PUBLIC_LOG_S " exited...", name.c_str());