Searched defs:cond (Results 1 - 2 of 2) sorted by relevance

/bionic/libc/bionic/
H A Dpthread_cond.cpp109 int pthread_cond_init(pthread_cond_t* cond, const pthread_condattr_t* attr) { argument
111 cond->value = (*attr & COND_FLAGS_MASK);
113 cond->value = 0;
119 int pthread_cond_destroy(pthread_cond_t* cond) { argument
120 cond->value = 0xdeadc04d;
127 static int __pthread_cond_pulse(pthread_cond_t* cond, int counter) { argument
128 int flags = (cond->value & COND_FLAGS_MASK);
130 int old_value = cond->value;
132 if (__bionic_cmpxchg(old_value, new_value, &cond->value) == 0) {
142 // recommended practice and holds the mutex before signaling the cond
152 __pthread_cond_timedwait_relative(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* reltime) argument
166 __pthread_cond_timedwait(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* abstime, clockid_t clock) argument
182 pthread_cond_broadcast(pthread_cond_t* cond) argument
186 pthread_cond_signal(pthread_cond_t* cond) argument
190 pthread_cond_wait(pthread_cond_t* cond, pthread_mutex_t* mutex) argument
194 pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t * mutex, const timespec *abstime) argument
200 pthread_cond_timedwait_monotonic(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* abstime) argument
204 pthread_cond_timedwait_monotonic_np(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* abstime) argument
208 pthread_cond_timedwait_relative_np(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* reltime) argument
212 pthread_cond_timeout_np(pthread_cond_t* cond, pthread_mutex_t* mutex, unsigned ms) argument
[all...]
/bionic/libc/dns/resolv/
H A Dres_cache.c1213 pthread_cond_t cond; member in struct:pending_req_info
1257 pthread_cond_broadcast(&tmp->cond);
1259 pthread_cond_destroy(&tmp->cond);
1292 pthread_cond_init(&ri->cond, NULL);
1299 pthread_cond_timedwait(&ri->cond, &_res_cache_list_lock, &ts);
1320 pthread_cond_broadcast(&ri->cond);
1330 pthread_cond_destroy(&ri->cond);

Completed in 55 milliseconds