Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 10 of 10) sorted by relevance

/bionic/libc/private/isc/
Dassertions.h69 #define REQUIRE(cond) \ argument
70 ((void) ((cond) || \
72 #cond, 0), 0)))
73 #define REQUIRE_ERR(cond) \ argument
74 ((void) ((cond) || \
76 #cond, 1), 0)))
78 #define REQUIRE(cond) ((void) (cond)) argument
79 #define REQUIRE_ERR(cond) ((void) (cond)) argument
83 #define ENSURE(cond) \ argument
84 ((void) ((cond) || \
[all …]
/bionic/libc/netbsd/resolv/
Dres_debug.h24 # 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
Dres_cache.c1178 pthread_cond_t cond; member
1214 pthread_cond_broadcast(&tmp->cond); in _cache_flush_pending_requests_locked()
1216 pthread_cond_destroy(&tmp->cond); in _cache_flush_pending_requests_locked()
1249 pthread_cond_init(&ri->cond, NULL); in _cache_check_pending_request_locked()
1255 int rv = pthread_cond_timedwait(&ri->cond, &cache->lock, &ts); in _cache_check_pending_request_locked()
1274 pthread_cond_broadcast(&ri->cond); in _cache_notify_waiting_tid_locked()
1284 pthread_cond_destroy(&ri->cond); in _cache_notify_waiting_tid_locked()
/bionic/libc/include/
Dpthread.h177 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/bionic/
Dpthread-rwlocks.c56 #define __likely(cond) __builtin_expect(!!(cond), 1) argument
57 #define __unlikely(cond) __builtin_expect(!!(cond), 0) argument
137 ret = pthread_cond_init(&rwlock->cond, cond_attr); in pthread_rwlock_init()
161 pthread_cond_destroy(&rwlock->cond); in pthread_rwlock_destroy()
206 pthread_cond_broadcast(&rwlock->cond); in _pthread_rwlock_pulse()
244 ret = pthread_cond_timedwait(&rwlock->cond, &rwlock->lock, abs_timeout); in pthread_rwlock_timedrdlock()
297 ret = pthread_cond_timedwait(&rwlock->cond, &rwlock->lock, abs_timeout); in pthread_rwlock_timedwrlock()
Dpthread.c73 #define __likely(cond) __builtin_expect(!!(cond), 1) argument
74 #define __unlikely(cond) __builtin_expect(!!(cond), 0) argument
1633 int pthread_cond_init(pthread_cond_t *cond, in pthread_cond_init() argument
1636 if (cond == NULL) in pthread_cond_init()
1639 cond->value = 0; in pthread_cond_init()
1642 cond->value |= COND_SHARED_MASK; in pthread_cond_init()
1647 int pthread_cond_destroy(pthread_cond_t *cond) in pthread_cond_destroy() argument
1649 if (cond == NULL) in pthread_cond_destroy()
1652 cond->value = 0xdeadc04d; in pthread_cond_destroy()
1661 __pthread_cond_pulse(pthread_cond_t *cond, int counter) in __pthread_cond_pulse() argument
[all …]
Dpthread-timers.c107 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()
Dlogd_write.c196 int __libc_android_log_assert(const char *cond, const char *tag, in __libc_android_log_assert() argument
/bionic/linker/
Ddebugger.c60 #define RETRY_ON_EINTR(ret,cond) \ argument
62 ret = (cond); \
/bionic/libc/kernel/tools/
Dcpp.py754 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)