Searched refs:prev_wait_count (Results 1 – 1 of 1) sorted by relevance
124 uint32_t prev_wait_count = atomic_load_explicit(&barrier->wait_count, memory_order_relaxed); in pthread_barrier_wait() local130 if (prev_wait_count >= barrier->init_count) { in pthread_barrier_wait()135 if (atomic_compare_exchange_weak_explicit(&barrier->wait_count, &prev_wait_count, in pthread_barrier_wait()136 prev_wait_count + 1u, memory_order_acq_rel, in pthread_barrier_wait()143 if (prev_wait_count + 1 == barrier->init_count) { in pthread_barrier_wait()145 if (prev_wait_count != 0) { in pthread_barrier_wait()149 __futex_wake_ex(&barrier->state, barrier->pshared, prev_wait_count); in pthread_barrier_wait()