Home
last modified time | relevance | path

Searched refs:needRun_ (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/communication/netmanager_base/utils/common_utils/include/
H A Ddelayed_queue.h31 DelayedQueue() : index_(0), needRun_(true) in DelayedQueue()
34 while (needRun_) { in DelayedQueue()
45 if (!needRun_) { in DelayedQueue()
49 … needRunCondition_.wait_for(needRunLock, std::chrono::seconds(1), [this] { return !needRun_; }); in DelayedQueue()
59 needRun_ = false; in ~DelayedQueue()
85 std::atomic_bool needRun_; variable
/ohos5.0/foundation/communication/netstack/utils/common_utils/include/
H A Dthread_pool.h57 explicit ThreadPool(uint32_t timeout) : timeout_(timeout), idleThreadNum_(0), needRun_(true) in ThreadPool()
70 needRun_ = false; in ~ThreadPool()
153 [this] { return !needRun_ || !IsQueueEmpty(); }); in Sleep()
161 while (needRun_) { in RunTask()
170 if (!needRun_) { in RunTask()
209 std::atomic_bool needRun_; variable