Lines Matching defs:counter
760 * 12-2 counter counter of recursive mutexes
811 /* Mutex counter:
814 * detect when the counter is 0
823 /* Used to increment the counter directly after overflow has been checked */
826 /* Returns true iff the counter is 0 */
1036 * Non-recursive mutexes don't use the thread-id or counter fields, and the
1132 /* This common inlined function is used to increment the counter of an
1136 * If the counter overflows, it will return EAGAIN
1137 * Otherwise, it atomically increments the counter and returns 0
1154 * counter bits in the mutex value.
1162 * need to use an atomic cmpxchg loop to update the counter.
1165 /* increment counter, overflow was already checked */
1173 * cannot change the counter, so simply reload and try again.
1296 /* If the counter is > 0, we can simply decrement it atomically.
1312 /* the counter is 0, so we're going to unlock the mutex by resetting
1617 * The rest is a counter.
1657 * pthread_cond_signal to atomically decrement the counter
1658 * then wake-up 'counter' threads.
1661 __pthread_cond_pulse(pthread_cond_t *cond, int counter)
1689 __futex_wake_ex(&cond->value, COND_IS_SHARED(cond), counter);