Home | History | Annotate | Download | only in bionic

Lines Matching defs:cond

136   pthread_cond_internal_t* cond = __get_internal_cond(cond_interface);
142 atomic_init(&cond->state, init_state);
148 pthread_cond_internal_t* cond = __get_internal_cond(cond_interface);
149 atomic_store_explicit(&cond->state, 0xdeadc04d, memory_order_relaxed);
156 static int __pthread_cond_pulse(pthread_cond_internal_t* cond, int thread_count) {
167 atomic_fetch_add_explicit(&cond->state, COND_COUNTER_STEP, memory_order_relaxed);
169 __futex_wake_ex(&cond->state, cond->process_shared(), thread_count);
173 static int __pthread_cond_timedwait(pthread_cond_internal_t* cond, pthread_mutex_t* mutex,
180 unsigned int old_state = atomic_load_explicit(&cond->state, memory_order_relaxed);
182 int status = __futex_wait_ex(&cond->state, cond->process_shared(), old_state,
201 pthread_cond_internal_t* cond = __get_internal_cond(cond_interface);
202 return __pthread_cond_timedwait(cond, mutex, false, nullptr);
208 pthread_cond_internal_t* cond = __get_internal_cond(cond_interface);
209 return __pthread_cond_timedwait(cond, mutex, cond->use_realtime_clock(), abstime);