/bionic/libc/upstream-netbsd/libc/include/isc/ |
D | assertions.h | 72 #define REQUIRE(cond) \ argument 73 ((void) ((cond) || \ 75 #cond, 0), 0))) 76 #define REQUIRE_ERR(cond) \ argument 77 ((void) ((cond) || \ 79 #cond, 1), 0))) 81 #define REQUIRE(cond) ((void) (cond)) argument 82 #define REQUIRE_ERR(cond) ((void) (cond)) argument 86 #define ENSURE(cond) \ argument 87 ((void) ((cond) || \ [all …]
|
/bionic/libc/netbsd/resolv/ |
D | res_debug.h | 24 # define Dprint(cond, args) /*empty*/ argument 25 # define DprintQ(cond, args, query, size) /*empty*/ argument 29 # define Dprint(cond, args) if (cond) {fprintf args;} else {} argument 30 # define DprintQ(cond, args, query, size) if (cond) {\ argument
|
D | res_cache.c | 1230 pthread_cond_t cond; member 1274 pthread_cond_broadcast(&tmp->cond); in _cache_flush_pending_requests_locked() 1276 pthread_cond_destroy(&tmp->cond); in _cache_flush_pending_requests_locked() 1309 pthread_cond_init(&ri->cond, NULL); in _cache_check_pending_request_locked() 1316 pthread_cond_timedwait(&ri->cond, &cache->lock, &ts); in _cache_check_pending_request_locked() 1335 pthread_cond_broadcast(&ri->cond); in _cache_notify_waiting_tid_locked() 1345 pthread_cond_destroy(&ri->cond); in _cache_notify_waiting_tid_locked()
|
/bionic/libc/bionic/ |
D | pthread.c | 59 #define __likely(cond) __builtin_expect(!!(cond), 1) argument 60 #define __unlikely(cond) __builtin_expect(!!(cond), 0) argument 1044 int pthread_cond_init(pthread_cond_t *cond, in pthread_cond_init() argument 1047 if (cond == NULL) in pthread_cond_init() 1050 cond->value = 0; in pthread_cond_init() 1053 cond->value |= COND_SHARED_MASK; in pthread_cond_init() 1058 int pthread_cond_destroy(pthread_cond_t *cond) in pthread_cond_destroy() argument 1060 if (cond == NULL) in pthread_cond_destroy() 1063 cond->value = 0xdeadc04d; in pthread_cond_destroy() 1072 __pthread_cond_pulse(pthread_cond_t *cond, int counter) in __pthread_cond_pulse() argument [all …]
|
D | pthread-rwlocks.c | 56 #define __likely(cond) __builtin_expect(!!(cond), 1) argument 57 #define __unlikely(cond) __builtin_expect(!!(cond), 0) argument 131 ret = pthread_cond_init(&rwlock->cond, cond_attr); in pthread_rwlock_init() 153 pthread_cond_destroy(&rwlock->cond); in pthread_rwlock_destroy() 198 pthread_cond_broadcast(&rwlock->cond); in _pthread_rwlock_pulse() 236 ret = pthread_cond_timedwait(&rwlock->cond, &rwlock->lock, abs_timeout); in pthread_rwlock_timedrdlock() 289 ret = pthread_cond_timedwait(&rwlock->cond, &rwlock->lock, abs_timeout); in pthread_rwlock_timedwrlock()
|
D | pthread-timers.c | 107 pthread_cond_t cond; /* signal a state change to thread */ member 187 pthread_cond_signal( &timer->cond ); in thr_timer_table_start_stop() 339 pthread_cond_init(&timer->cond, NULL); in timer_create() 378 pthread_cond_signal( &timer->cond ); in timer_delete() 488 pthread_cond_signal( &timer->cond ); in timer_settime() 535 pthread_cond_wait(&timer->cond, &timer->mutex); in timer_thread_start() 550 int ret = __pthread_cond_timedwait_relative(&timer->cond, &timer->mutex, &diff); in timer_thread_start()
|
/bionic/libc/include/ |
D | pthread.h | 177 int pthread_cond_init(pthread_cond_t *cond, 179 int pthread_cond_destroy(pthread_cond_t *cond); 180 int pthread_cond_broadcast(pthread_cond_t *cond); 181 int pthread_cond_signal(pthread_cond_t *cond); 182 int pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex); 183 int pthread_cond_timedwait(pthread_cond_t *cond, 191 int pthread_cond_timedwait_monotonic_np(pthread_cond_t *cond, 198 int pthread_cond_timedwait_monotonic(pthread_cond_t *cond, 207 int pthread_cond_timedwait_relative_np(pthread_cond_t *cond, 215 int pthread_cond_timeout_np(pthread_cond_t *cond, [all …]
|
/bionic/libc/kernel/tools/ |
D | cpp.py | 754 def __init__(self,cond,iftrue,iffalse): argument 756 self.cond = cond 761 return "(?: %s %s %s)" % (repr(self.cond),repr(self.iftrue),repr(self.iffalse)) 764 return "(%s) ? (%s) : (%s)" % (self.cond, self.iftrue, self.iffalse)
|