Lines Matching defs:status_
17 // status_ == 1: Event object is signaled.
18 // status_ == 0: Event object is reset and no threads are waiting.
19 // status_ == -N: Event object is reset and N threads are waiting.
20 std::atomic<int> status_;
24 AutoResetEvent() : status_(0), semaphore_(0) {}
27 int old_status = status_.load(std::memory_order_relaxed);
28 // Increment status_ atomically via CAS loop.
32 if (status_.compare_exchange_weak(old_status, new_status,
38 // status_. old_status has been updated. Retry the CAS loop.
45 int old_status = status_.fetch_sub(1, std::memory_order_acquire);