Home
last modified time | relevance | path

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

/bionic/libc/upstream-netbsd/lib/libc/include/isc/
Dassertions.h72 #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/bionic/
Dpthread_cond.cpp137 pthread_cond_internal_t* cond = __get_internal_cond(cond_interface); in pthread_cond_init() local
143 atomic_init(&cond->state, init_state); in pthread_cond_init()
146 atomic_init(&cond->waiters, 0); in pthread_cond_init()
153 pthread_cond_internal_t* cond = __get_internal_cond(cond_interface); in pthread_cond_destroy() local
154 atomic_store_explicit(&cond->state, 0xdeadc04d, memory_order_relaxed); in pthread_cond_destroy()
161 static int __pthread_cond_pulse(pthread_cond_internal_t* cond, int thread_count) { in __pthread_cond_pulse() argument
172 if (atomic_load_explicit(&cond->waiters, memory_order_relaxed) == 0) { in __pthread_cond_pulse()
178 atomic_fetch_add_explicit(&cond->state, COND_COUNTER_STEP, memory_order_relaxed); in __pthread_cond_pulse()
180 __futex_wake_ex(&cond->state, cond->process_shared(), thread_count); in __pthread_cond_pulse()
184 static int __pthread_cond_timedwait(pthread_cond_internal_t* cond, pthread_mutex_t* mutex, in __pthread_cond_timedwait() argument
[all …]
/bionic/libc/dns/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.c1271 pthread_cond_t cond; member
1319 pthread_cond_broadcast(&tmp->cond); in _cache_flush_pending_requests_locked()
1321 pthread_cond_destroy(&tmp->cond); in _cache_flush_pending_requests_locked()
1354 pthread_cond_init(&ri->cond, NULL); in _cache_check_pending_request_locked()
1361 pthread_cond_timedwait(&ri->cond, &_res_cache_list_lock, &ts); in _cache_check_pending_request_locked()
1382 pthread_cond_broadcast(&ri->cond); in _cache_notify_waiting_tid_locked()
1392 pthread_cond_destroy(&ri->cond); in _cache_notify_waiting_tid_locked()
/bionic/libc/include/sys/
Dcdefs.h148 #define __enable_if(cond, msg) __attribute__((__enable_if__(cond, msg))) argument
149 #define __clang_error_if(cond, msg) __attribute__((__diagnose_if__(cond, msg, "error"))) argument
150 #define __clang_warning_if(cond, msg) __attribute__((__diagnose_if__(cond, msg, "warning"))) argument
292 #define __bos_dynamic_check_impl_and(bos_val, op, index, cond) \ argument
294 (__builtin_constant_p(index) && bos_val op index && (cond)))
/bionic/tests/
Dpthread_test.cpp1551 pthread_cond_t cond; member in pthread_CondWakeupTest
1562 std::function<int (pthread_cond_t* cond, pthread_mutex_t* mutex)> wait_function;
1573 ASSERT_EQ(0, pthread_cond_init(&cond, &attr)); in InitCond()
1578 std::function<int(pthread_cond_t* cond, pthread_mutex_t* mutex)> wait_function) { in StartWaitingThread() argument
1591 std::function<int(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* timeout)> in RunTimedTest() argument
1596 StartWaitingThread([&wait_function, this](pthread_cond_t* cond, pthread_mutex_t* mutex) { in RunTimedTest() argument
1597 return wait_function(cond, mutex, &ts); in RunTimedTest()
1601 ASSERT_EQ(0, pthread_cond_signal(&cond)); in RunTimedTest()
1604 void RunTimedTest(clockid_t clock, std::function<int(pthread_cond_t* cond, pthread_mutex_t* mutex, in RunTimedTest() argument
1607 RunTimedTest(clock, [clock, &wait_function](pthread_cond_t* cond, pthread_mutex_t* mutex, in RunTimedTest()
[all …]
Dclang_fortify_tests.cpp114 #define DIE_WITH(expr, cond, regex) EXPECT_EXIT(ExitAfter([&] { (expr); }), cond, regex) argument
/bionic/libc/kernel/uapi/linux/
Dblkzoned.h34 __u8 cond; member
/bionic/libc/tzcode/
Dprivate.h47 # define static_assert(cond) extern int static_assert_check[(cond) ? 1 : -1] argument