Home
last modified time | relevance | path

Searched refs:thread_ (Results 1 - 6 of 6) sorted by relevance

/commonlibrary/c_utils/base/src/
H A Dthread_ex.cpp98 : thread_(INVALID_PTHREAD_T), status_(ThreadStatus::OK), exitPending_(false), running_(false) in Thread()
116 thread_ = INVALID_PTHREAD_T; in Start()
125 bool res = CreatePThread(para, stack, &thread_); in Start()
129 thread_ = INVALID_PTHREAD_T; in Start()
139 if (pthread_equal(thread_, pthread_self()) != 0) { in NotifyExitSync()
200 self->thread_ = INVALID_PTHREAD_T; in ThreadStart()
H A Dtimer.cpp40 if (thread_.joinable()) { // avoid double assign to an active thread in Setup()
45 thread_.swap(loop_thread); in Setup()
52 if (!thread_.joinable()) { in Shutdown()
71 thread_.detach(); in Shutdown()
76 thread_.detach(); in Shutdown()
79 thread_.join(); in Shutdown()
/commonlibrary/c_utils/base/include/
H A Dthread_ex.h126 pthread_t GetThread() const { return thread_; } in GetThread()
137 pthread_t thread_; // Thread ID member in OHOS::Thread
H A Dtimer.h47 * `thread_` must be guaranteed.
143 std::thread thread_; member in OHOS::Utils::Timer
/commonlibrary/c_utils/base/test/benchmarktest/event_benchmark_test/
H A Devent_benchmark_test.cpp750 std::thread thread_; member in OHOS::__anon12::Timer
777 if (thread_.joinable()) { // avoid double assign to an active thread in Setup()
789 thread_.swap(loopThread); in Setup()
797 if (!thread_.joinable()) { in Shutdown()
806 thread_.detach(); in Shutdown()
809 thread_.join(); in Shutdown()
/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_event_test.cpp620 std::thread thread_; member in OHOS::__anon33::Timer
643 if (thread_.joinable()) { // avoid double assign to an active thread in Setup()
655 thread_.swap(loopThread); in Setup()
662 if (!thread_.joinable()) { in Shutdown()
671 thread_.detach(); in Shutdown()
674 thread_.join(); in Shutdown()

Completed in 6 milliseconds