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

/bionic/libc/bionic/
H A Dpthread_cond.cpp136 pthread_cond_internal_t* cond = __get_internal_cond(cond_interface); local
142 atomic_init(&cond->state, init_state);
148 pthread_cond_internal_t* cond = __get_internal_cond(cond_interface); local
149 atomic_store_explicit(&cond->state, 0xdeadc04d, memory_order_relaxed);
156 static int __pthread_cond_pulse(pthread_cond_internal_t* cond, int thread_count) { argument
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, argument
180 unsigned int old_state = atomic_load_explicit(&cond
201 pthread_cond_internal_t* cond = __get_internal_cond(cond_interface); local
208 pthread_cond_internal_t* cond = __get_internal_cond(cond_interface); local
[all...]
/bionic/libc/dns/resolv/
H A Dres_cache.c1219 pthread_cond_t cond; member in struct:pending_req_info
1267 pthread_cond_broadcast(&tmp->cond);
1269 pthread_cond_destroy(&tmp->cond);
1302 pthread_cond_init(&ri->cond, NULL);
1309 pthread_cond_timedwait(&ri->cond, &_res_cache_list_lock, &ts);
1330 pthread_cond_broadcast(&ri->cond);
1340 pthread_cond_destroy(&ri->cond);
/bionic/tests/
H A Dpthread_test.cpp1119 pthread_cond_t cond; member in class:pthread_CondWakeupTest
1129 std::function<int (pthread_cond_t* cond, pthread_mutex_t* mutex)> wait_function;
1140 ASSERT_EQ(0, pthread_cond_init(&cond, &attr));
1144 void StartWaitingThread(std::function<int (pthread_cond_t* cond, pthread_mutex_t* mutex)> wait_function) { argument
1157 ASSERT_EQ(0, pthread_cond_destroy(&cond));
1166 ASSERT_EQ(0, test->wait_function(&test->cond, &test->mutex));
1176 StartWaitingThread([](pthread_cond_t* cond, pthread_mutex_t* mutex) {
1177 return pthread_cond_wait(cond, mutex);
1180 ASSERT_EQ(0, pthread_cond_signal(&cond));
1185 StartWaitingThread([](pthread_cond_t* cond, pthread_mutex_
1219 pthread_cond_t cond; local
1731 pthread_cond_t* cond = reinterpret_cast<pthread_cond_t*>( local
[all...]

Completed in 1344 milliseconds