/freebsd-11-stable/lib/libstdthreads/ |
H A D | cnd.c | 38 cnd_broadcast(cnd_t *cond) argument 41 if (pthread_cond_broadcast(cond) != 0) 47 cnd_destroy(cnd_t *cond) argument 50 (void)pthread_cond_destroy(cond); 54 cnd_init(cnd_t *cond) argument 57 switch (pthread_cond_init(cond, NULL)) { 68 cnd_signal(cnd_t *cond) argument 71 if (pthread_cond_signal(cond) != 0) 77 cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx, argument 81 switch (pthread_cond_timedwait(cond, mt 92 cnd_wait(cnd_t *cond, mtx_t *mtx) argument [all...] |
/freebsd-11-stable/lib/libc/resolv/ |
H A D | res_debug.h | 22 # define Dprint(cond, args) /*empty*/ 23 # define DprintQ(cond, args, query, size) /*empty*/ 27 # define Dprint(cond, args) if (cond) {fprintf args;} else {} 28 # define DprintQ(cond, args, query, size) if (cond) {\
|
/freebsd-11-stable/contrib/sendmail/include/sm/ |
H A D | assert.h | 66 # define SM_REQUIRE(cond) \ 67 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \ 68 "SM_REQUIRE(" #cond ") failed"), 0))) 70 # define SM_REQUIRE(cond) \ 71 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \ 72 "SM_REQUIRE(cond) failed"), 0))) 75 # define SM_REQUIRE(cond) ((void) 0) 83 # define SM_ENSURE(cond) \ 84 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \ 85 "SM_ENSURE(" #cond ") faile [all...] |
H A D | test.h | 22 # define SM_TEST(cond) sm_test(cond, #cond, __FILE__, __LINE__) 24 # define SM_TEST(cond) sm_test(cond, "cond", __FILE__, __LINE__)
|
/freebsd-11-stable/contrib/ntp/lib/isc/include/isc/ |
H A D | assertions.h | 85 #define ISC_REQUIRE(cond) \ 86 ((void) ((cond) || \ 89 #cond), 0))) 91 #define ISC_REQUIRE(cond) ((void) 0) 95 #define ISC_ENSURE(cond) \ 96 ((void) ((cond) || \ 99 #cond), 0))) 101 #define ISC_ENSURE(cond) ((void) 0) 105 #define ISC_INSIST(cond) \ 106 ((void) ((cond) || \ [all...] |
H A D | error.h | 57 #define ISC_ERROR_RUNTIMECHECK(cond) \ 58 ((void) ((cond) || \ 59 ((isc_error_runtimecheck)(__FILE__, __LINE__, #cond), 0)))
|
/freebsd-11-stable/contrib/ntp/sntp/libevent/ |
H A D | evthread_win32.c | 130 CONDITION_VARIABLE *cond = mm_malloc(sizeof(CONDITION_VARIABLE)); local 131 if (!cond) 133 InitializeConditionVariable_fn(cond); 134 return cond; 140 CONDITION_VARIABLE *cond = cond_; local 142 mm_free(cond); 146 evthread_win32_condvar_signal(void *cond, int broadcast) argument 148 CONDITION_VARIABLE *cond = cond_; local 150 WakeAllConditionVariable_fn(cond); 152 WakeConditionVariable_fn(cond); 159 CONDITION_VARIABLE *cond = cond_; local 192 struct evthread_win32_cond *cond; local 211 struct evthread_win32_cond *cond = cond_; local 220 struct evthread_win32_cond *cond = cond_; local 235 struct evthread_win32_cond *cond = cond_; local [all...] |
H A D | evthread-internal.h | 156 #define EVTHREAD_FREE_COND(cond) \ 158 if (cond) \ 159 evthread_cond_fns_.free_condition((cond)); \ 161 /** Signal one thread waiting on cond */ 162 #define EVTHREAD_COND_SIGNAL(cond) \ 163 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 0) : 0 ) 164 /** Signal all threads waiting on cond */ 165 #define EVTHREAD_COND_BROADCAST(cond) \ 166 ( (cond) [all...] |
H A D | evthread_pthread.c | 106 pthread_cond_t *cond = mm_malloc(sizeof(pthread_cond_t)); local 107 if (!cond) 109 if (pthread_cond_init(cond, NULL)) { 110 mm_free(cond); 113 return cond; 119 pthread_cond_t *cond = cond_; local 120 pthread_cond_destroy(cond); 121 mm_free(cond); 127 pthread_cond_t *cond = cond_; local 130 r = pthread_cond_broadcast(cond); 140 pthread_cond_t *cond = cond_; local [all...] |
/freebsd-11-stable/contrib/atf/atf-c/detail/ |
H A D | sanity.c | 59 atf_sanity_inv(const char *file, int line, const char *cond) argument 61 fail("Invariant check failed at %s:%d: %s", file, line, cond); 65 atf_sanity_pre(const char *file, int line, const char *cond) argument 67 fail("Precondition check failed at %s:%d: %s", file, line, cond); 71 atf_sanity_post(const char *file, int line, const char *cond) argument 73 fail("Postcondition check failed at %s:%d: %s", file, line, cond);
|
/freebsd-11-stable/contrib/apr/include/ |
H A D | apr_thread_cond.h | 55 * @param cond the memory address where the newly created condition variable 59 APR_DECLARE(apr_status_t) apr_thread_cond_create(apr_thread_cond_t **cond, 69 * @param cond the condition variable on which to block. 77 APR_DECLARE(apr_status_t) apr_thread_cond_wait(apr_thread_cond_t *cond, 87 * @param cond the condition variable on which to block. 96 APR_DECLARE(apr_status_t) apr_thread_cond_timedwait(apr_thread_cond_t *cond, 105 * @param cond the condition variable on which to produce the signal. 108 APR_DECLARE(apr_status_t) apr_thread_cond_signal(apr_thread_cond_t *cond); variable 114 * @param cond the condition variable on which to produce the broadcast. 117 APR_DECLARE(apr_status_t) apr_thread_cond_broadcast(apr_thread_cond_t *cond); variable 123 APR_DECLARE(apr_status_t) apr_thread_cond_destroy(apr_thread_cond_t *cond); variable [all...] |
/freebsd-11-stable/contrib/apr/locks/unix/ |
H A D | thread_cond.c | 26 apr_thread_cond_t *cond = (apr_thread_cond_t *)data; local 29 rv = pthread_cond_destroy(&cond->cond); 38 APR_DECLARE(apr_status_t) apr_thread_cond_create(apr_thread_cond_t **cond, 48 if ((rv = pthread_cond_init(&new_cond->cond, NULL))) { 59 *cond = new_cond; 63 APR_DECLARE(apr_status_t) apr_thread_cond_wait(apr_thread_cond_t *cond, 68 rv = pthread_cond_wait(&cond->cond, &mutex->mutex); 77 APR_DECLARE(apr_status_t) apr_thread_cond_timedwait(apr_thread_cond_t *cond, [all...] |
/freebsd-11-stable/contrib/ntp/lib/isc/win32/ |
H A D | condition.c | 32 isc_condition_init(isc_condition_t *cond) { argument 35 REQUIRE(cond != NULL); 37 cond->waiters = 0; 46 cond->events[LSIGNAL] = h; 52 ISC_LIST_INIT(cond->threadlist); 98 find_thread_condition(unsigned long thrd, isc_condition_t *cond, argument 108 for (threadcond = ISC_LIST_HEAD(cond->threadlist); 121 return (register_thread(thrd, cond, threadcondp)); 125 isc_condition_signal(isc_condition_t *cond) { argument 131 REQUIRE(cond ! 142 isc_condition_broadcast(isc_condition_t *cond) argument 171 isc_condition_destroy(isc_condition_t *cond) argument 206 wait(isc_condition_t *cond, isc_mutex_t *mutex, DWORD milliseconds) argument 235 isc_condition_wait(isc_condition_t *cond, isc_mutex_t *mutex) argument 240 isc_condition_waituntil(isc_condition_t *cond, isc_mutex_t *mutex, isc_time_t *t) argument [all...] |
/freebsd-11-stable/contrib/apr/include/arch/unix/ |
H A D | apr_arch_thread_cond.h | 37 pthread_cond_t cond; member in struct:apr_thread_cond_t
|
H A D | apr_arch_thread_mutex.h | 36 apr_thread_cond_t *cond; member in struct:apr_thread_mutex_t
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/builtins/arm/ |
H A D | aeabi_dcmp.S | 28 #define DEFINE_AEABI_DCMP(cond) \ 31 DEFINE_COMPILERRT_FUNCTION(__aeabi_dcmp ## cond) \ 34 bl SYMBOL_NAME(__ ## cond ## df2) SEPARATOR \ 36 b ## cond 1f SEPARATOR \ 42 END_COMPILERRT_FUNCTION(__aeabi_dcmp ## cond)
|
H A D | aeabi_fcmp.S | 28 #define DEFINE_AEABI_FCMP(cond) \ 31 DEFINE_COMPILERRT_FUNCTION(__aeabi_fcmp ## cond) \ 34 bl SYMBOL_NAME(__ ## cond ## sf2) SEPARATOR \ 36 b ## cond 1f SEPARATOR \ 42 END_COMPILERRT_FUNCTION(__aeabi_fcmp ## cond)
|
/freebsd-11-stable/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_debug.h | 36 #define KMP_ASSERT(cond) \ 37 if (!(cond)) { \ 38 __kmp_debug_assert(#cond, __FILE__, __LINE__); \ 40 #define KMP_ASSERT2(cond, msg) \ 41 if (!(cond)) { \ 44 #define KMP_DEBUG_ASSERT(cond) KMP_ASSERT(cond) 45 #define KMP_DEBUG_ASSERT2(cond, msg) KMP_ASSERT2(cond, msg) 49 #define KMP_ASSERT(cond) \ [all...] |
/freebsd-11-stable/contrib/gcc/ |
H A D | tree-ssa-loop-unswitch.c | 117 tree stmt, def, cond, use; local 136 cond = COND_EXPR_COND (stmt); 140 if (integer_zerop (cond) || integer_nonzerop (cond)) 143 return cond; 151 simplify_using_entry_checks (struct loop *loop, tree cond) argument 161 && operand_equal_p (COND_EXPR_COND (stmt), cond, 0)) 167 return cond; 171 return cond; 185 tree cond local 280 tree_unswitch_loop(struct loops *loops, struct loop *loop, basic_block unswitch_on, tree cond) argument [all...] |
/freebsd-11-stable/contrib/xz/src/common/ |
H A D | mythread.h | 116 pthread_cond_t cond; member in struct:__anon5823 235 ret = pthread_cond_init(&mycond->cond, &condattr); 253 return pthread_cond_init(&mycond->cond, NULL); 257 mythread_cond_destroy(mythread_cond *cond) argument 259 int ret = pthread_cond_destroy(&cond->cond); 265 mythread_cond_signal(mythread_cond *cond) argument 267 int ret = pthread_cond_signal(&cond->cond); 273 mythread_cond_wait(mythread_cond *cond, mythread_mute argument 283 mythread_cond_timedwait(mythread_cond *cond, mythread_mutex *mutex, const mythread_condtime *condtime) argument 294 mythread_condtime_set(mythread_condtime *condtime, const mythread_cond *cond, uint32_t timeout_ms) argument 439 mythread_cond_init(mythread_cond *cond) argument 451 mythread_cond_destroy(mythread_cond *cond) argument 461 mythread_cond_signal(mythread_cond *cond) argument 471 mythread_cond_wait(mythread_cond *cond, mythread_mutex *mutex) argument 485 mythread_cond_timedwait(mythread_cond *cond, mythread_mutex *mutex, const mythread_condtime *condtime) argument 511 mythread_condtime_set(mythread_condtime *condtime, const mythread_cond *cond, uint32_t timeout) argument [all...] |
/freebsd-11-stable/tools/regression/capsicum/syscalls/ |
H A D | misc.h | 47 #define CHECK(cond) do { \ 48 if ((cond)) \
|
/freebsd-11-stable/libexec/rtld-elf/ |
H A D | debug.h | 55 #define assert(cond) ((cond) ? (void) 0 : \
|
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_cond.c | 50 int __pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex); 51 int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, 53 static int cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr); 54 static int cond_wait_common(pthread_cond_t *cond, pthread_mutex_t *mutex, 56 static int cond_signal_common(pthread_cond_t *cond); 57 static int cond_broadcast_common(pthread_cond_t *cond); 88 cond_init(pthread_cond_t *cond, const pthread_condattr_t *cond_attr) argument 102 cvp = __thr_pshared_offpage(cond, 1); 111 *cond = pshared ? THR_PSHARED_PTR : cvp; 116 init_static(struct pthread *thread, pthread_cond_t *cond) argument 150 _pthread_cond_init(pthread_cond_t * __restrict cond, const pthread_condattr_t * __restrict cond_attr) argument 159 _pthread_cond_destroy(pthread_cond_t *cond) argument 339 cond_wait_common(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime, int cancel) argument 369 _pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *mutex) argument 376 __pthread_cond_wait(pthread_cond_t * __restrict cond, pthread_mutex_t * __restrict mutex) argument 384 _pthread_cond_timedwait(pthread_cond_t * __restrict cond, pthread_mutex_t * __restrict mutex, const struct timespec * __restrict abstime) argument 397 __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime) argument 409 cond_signal_common(pthread_cond_t *cond) argument 495 cond_broadcast_common(pthread_cond_t *cond) argument 533 _pthread_cond_signal(pthread_cond_t * cond) argument 540 _pthread_cond_broadcast(pthread_cond_t * cond) argument [all...] |
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | wait.h | 50 #define might_sleep_if(cond) do { \ 51 if (cond) { might_sleep(); } \ 144 * Returns -ERESTARTSYS for a signal, 0 if cond is false after timeout, 1 if 145 * cond is true after timeout, remaining jiffies (> 0) if cond is true before 148 #define __wait_event_common(wqh, cond, timeout, state, lock) ({ \ 156 if (cond) \ 166 __ret = !!(cond); \ 179 #define wait_event(wqh, cond) do { \ 180 (void) __wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOU [all...] |
/freebsd-11-stable/contrib/ntp/sntp/libevent/include/event2/ |
H A D | thread.h | 150 void (*free_condition)(void *cond); 152 * threads waiting on 'cond' should be woken; otherwise, only on one 157 int (*signal_condition)(void *cond, int broadcast); 168 int (*wait_condition)(void *cond, void *lock,
|