Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 8 of 8) 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.cpp136 pthread_cond_internal_t* cond = __get_internal_cond(cond_interface); in pthread_cond_init() local
142 atomic_init(&cond->state, init_state); in pthread_cond_init()
148 pthread_cond_internal_t* cond = __get_internal_cond(cond_interface); in pthread_cond_destroy() local
149 atomic_store_explicit(&cond->state, 0xdeadc04d, memory_order_relaxed); in pthread_cond_destroy()
156 static int __pthread_cond_pulse(pthread_cond_internal_t* cond, int thread_count) { in __pthread_cond_pulse() argument
167 atomic_fetch_add_explicit(&cond->state, COND_COUNTER_STEP, memory_order_relaxed); in __pthread_cond_pulse()
169 __futex_wake_ex(&cond->state, cond->process_shared(), thread_count); in __pthread_cond_pulse()
173 static int __pthread_cond_timedwait(pthread_cond_internal_t* cond, pthread_mutex_t* mutex, in __pthread_cond_timedwait() argument
180 unsigned int old_state = atomic_load_explicit(&cond->state, memory_order_relaxed); in __pthread_cond_timedwait()
182 int status = __futex_wait_ex(&cond->state, cond->process_shared(), old_state, in __pthread_cond_timedwait()
[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.c1275 pthread_cond_t cond; member
1323 pthread_cond_broadcast(&tmp->cond); in _cache_flush_pending_requests_locked()
1325 pthread_cond_destroy(&tmp->cond); in _cache_flush_pending_requests_locked()
1358 pthread_cond_init(&ri->cond, NULL); in _cache_check_pending_request_locked()
1365 pthread_cond_timedwait(&ri->cond, &_res_cache_list_lock, &ts); in _cache_check_pending_request_locked()
1386 pthread_cond_broadcast(&ri->cond); in _cache_notify_waiting_tid_locked()
1396 pthread_cond_destroy(&ri->cond); in _cache_notify_waiting_tid_locked()
/bionic/libc/include/sys/
Dcdefs.h137 #define __enable_if(cond, msg) __attribute__((enable_if(cond, msg))) argument
138 #define __clang_error_if(cond, msg) __attribute__((diagnose_if(cond, msg, "error"))) argument
139 #define __clang_warning_if(cond, msg) __attribute__((diagnose_if(cond, msg, "warning"))) argument
305 #define __bos_dynamic_check_impl_and(bos_val, op, index, cond) \ argument
307 (__builtin_constant_p(index) && bos_val op index && (cond)))
/bionic/tests/
Dpthread_test.cpp1472 pthread_cond_t cond; member in pthread_CondWakeupTest
1482 std::function<int (pthread_cond_t* cond, pthread_mutex_t* mutex)> wait_function;
1493 ASSERT_EQ(0, pthread_cond_init(&cond, &attr)); in InitCond()
1498 std::function<int(pthread_cond_t* cond, pthread_mutex_t* mutex)> wait_function) { in StartWaitingThread() argument
1511 std::function<int(pthread_cond_t* cond, pthread_mutex_t* mutex, const timespec* timeout)> in RunTimedTest() argument
1517 StartWaitingThread([&wait_function, &ts](pthread_cond_t* cond, pthread_mutex_t* mutex) { in RunTimedTest() argument
1518 return wait_function(cond, mutex, &ts); in RunTimedTest()
1522 ASSERT_EQ(0, pthread_cond_signal(&cond)); in RunTimedTest()
1525 void RunTimedTest(clockid_t clock, std::function<int(pthread_cond_t* cond, pthread_mutex_t* mutex, in RunTimedTest() argument
1528 RunTimedTest(clock, [clock, &wait_function](pthread_cond_t* cond, pthread_mutex_t* mutex, in RunTimedTest()
[all …]
Dclang_fortify_tests.cpp142 #define DIE_WITH(expr, cond, regex) EXPECT_EXIT(ExitAfter([&] { (expr); }), cond, regex) argument
/bionic/libc/kernel/uapi/linux/
Dblkzoned.h43 __u8 cond; member