Lines Matching refs:count
21 // latch API, it is possible to initialize the latch to a count of zero, repeatedly call
22 // Pass() or Wait(), and only then set the count using the Increment() method. Threads at
23 // a Wait() are only awoken if the count reaches zero AFTER the decrement is applied.
25 // decrementing the count, and thus nobody can spuriosly wake up on the initial zero.
38 explicit Barrier(int count);
41 // Pass through the barrier, decrement the count but do not block.
44 // Wait on the barrier, decrement the count.
53 // Increment the count by delta, wait on condition if count is non zero.
56 // Increment the count by delta, wait on condition if count is non zero, with a timeout. Returns
60 // Set the count to a new value. This should only be used if there is no possibility that
62 void Init(Thread* self, int count);
65 void SetCountLocked(Thread* self, int count) EXCLUSIVE_LOCKS_REQUIRED(lock_);