| /freebsd-12.1/contrib/libevent/ |
| H A D | evthread_win32.c | 131 if (!cond) in evthread_win32_condvar_alloc() 134 return cond; in evthread_win32_condvar_alloc() 142 mm_free(cond); in evthread_win32_condvar_free() 196 mm_free(cond); in evthread_win32_cond_alloc() 201 mm_free(cond); in evthread_win32_cond_alloc() 204 cond->n_waiting = cond->n_to_wake = cond->generation = 0; in evthread_win32_cond_alloc() 205 return cond; in evthread_win32_cond_alloc() 214 mm_free(cond); in evthread_win32_cond_free() 223 cond->n_to_wake = cond->n_waiting; in evthread_win32_cond_signal() 225 ++cond->n_to_wake; in evthread_win32_cond_signal() [all …]
|
| H A D | evthread-internal.h | 156 #define EVTHREAD_FREE_COND(cond) \ argument 158 if (cond) \ 163 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 0) : 0 ) 166 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 1) : 0 ) 172 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), NULL) : 0 ) 176 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), (tv)) : 0 ) 271 if (cond) \ 276 ( (cond) ? evthreadimpl_cond_signal_((cond), 0) : 0 ) 279 ( (cond) ? evthreadimpl_cond_signal_((cond), 1) : 0 ) 285 ( (cond) ? evthreadimpl_cond_wait_((cond), (lock), NULL) : 0 ) [all …]
|
| H A D | evthread_pthread.c | 107 if (!cond) in evthread_posix_cond_alloc() 110 mm_free(cond); in evthread_posix_cond_alloc() 113 return cond; in evthread_posix_cond_alloc() 119 pthread_cond_t *cond = cond_; in evthread_posix_cond_free() local 120 pthread_cond_destroy(cond); in evthread_posix_cond_free() 121 mm_free(cond); in evthread_posix_cond_free() 127 pthread_cond_t *cond = cond_; in evthread_posix_cond_signal() local 130 r = pthread_cond_broadcast(cond); in evthread_posix_cond_signal() 132 r = pthread_cond_signal(cond); in evthread_posix_cond_signal() 140 pthread_cond_t *cond = cond_; in evthread_posix_cond_wait() local [all …]
|
| /freebsd-12.1/contrib/ntp/sntp/libevent/ |
| H A D | evthread_win32.c | 131 if (!cond) in evthread_win32_condvar_alloc() 134 return cond; in evthread_win32_condvar_alloc() 142 mm_free(cond); in evthread_win32_condvar_free() 196 mm_free(cond); in evthread_win32_cond_alloc() 201 mm_free(cond); in evthread_win32_cond_alloc() 204 cond->n_waiting = cond->n_to_wake = cond->generation = 0; in evthread_win32_cond_alloc() 205 return cond; in evthread_win32_cond_alloc() 214 mm_free(cond); in evthread_win32_cond_free() 223 cond->n_to_wake = cond->n_waiting; in evthread_win32_cond_signal() 225 ++cond->n_to_wake; in evthread_win32_cond_signal() [all …]
|
| H A D | evthread-internal.h | 156 #define EVTHREAD_FREE_COND(cond) \ argument 158 if (cond) \ 163 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 0) : 0 ) 166 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 1) : 0 ) 172 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), NULL) : 0 ) 176 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), (tv)) : 0 ) 271 if (cond) \ 276 ( (cond) ? evthreadimpl_cond_signal_((cond), 0) : 0 ) 279 ( (cond) ? evthreadimpl_cond_signal_((cond), 1) : 0 ) 285 ( (cond) ? evthreadimpl_cond_wait_((cond), (lock), NULL) : 0 ) [all …]
|
| H A D | evthread_pthread.c | 107 if (!cond) in evthread_posix_cond_alloc() 110 mm_free(cond); in evthread_posix_cond_alloc() 113 return cond; in evthread_posix_cond_alloc() 119 pthread_cond_t *cond = cond_; in evthread_posix_cond_free() local 120 pthread_cond_destroy(cond); in evthread_posix_cond_free() 121 mm_free(cond); in evthread_posix_cond_free() 127 pthread_cond_t *cond = cond_; in evthread_posix_cond_signal() local 130 r = pthread_cond_broadcast(cond); in evthread_posix_cond_signal() 132 r = pthread_cond_signal(cond); in evthread_posix_cond_signal() 140 pthread_cond_t *cond = cond_; in evthread_posix_cond_wait() local [all …]
|
| /freebsd-12.1/contrib/ntp/lib/isc/win32/ |
| H A D | condition.c | 35 REQUIRE(cond != NULL); in isc_condition_init() 37 cond->waiters = 0; in isc_condition_init() 46 cond->events[LSIGNAL] = h; in isc_condition_init() 52 ISC_LIST_INIT(cond->threadlist); in isc_condition_init() 131 REQUIRE(cond != NULL); in isc_condition_signal() 151 REQUIRE(cond != NULL); in isc_condition_broadcast() 175 REQUIRE(cond != NULL); in isc_condition_destroy() 176 REQUIRE(cond->waiters == 0); in isc_condition_destroy() 218 cond->waiters++; in wait() 223 cond->waiters--; in wait() [all …]
|
| /freebsd-12.1/contrib/sendmail/include/sm/ |
| H A D | assert.h | 66 # define SM_REQUIRE(cond) \ argument 68 "SM_REQUIRE(" #cond ") failed"), 0))) 70 # define SM_REQUIRE(cond) \ argument 75 # define SM_REQUIRE(cond) ((void) 0) argument 83 # define SM_ENSURE(cond) \ argument 85 "SM_ENSURE(" #cond ") failed"), 0))) 87 # define SM_ENSURE(cond) \ argument 92 # define SM_ENSURE(cond) ((void) 0) argument 97 # define SM_ASSERT(cond) \ argument 101 # define SM_ASSERT(cond) \ argument [all …]
|
| /freebsd-12.1/contrib/apr/locks/unix/ |
| H A D | thread_cond.c | 26 apr_thread_cond_t *cond = (apr_thread_cond_t *)data; in thread_cond_cleanup() local 29 rv = pthread_cond_destroy(&cond->cond); in thread_cond_cleanup() 38 APR_DECLARE(apr_status_t) apr_thread_cond_create(apr_thread_cond_t **cond, in apr_thread_cond_create() argument 48 if ((rv = pthread_cond_init(&new_cond->cond, NULL))) { in apr_thread_cond_create() 59 *cond = new_cond; in apr_thread_cond_create() 63 APR_DECLARE(apr_status_t) apr_thread_cond_wait(apr_thread_cond_t *cond, in apr_thread_cond_wait() argument 68 rv = pthread_cond_wait(&cond->cond, &mutex->mutex); in apr_thread_cond_wait() 89 rv = pthread_cond_timedwait(&cond->cond, &mutex->mutex, &abstime); in apr_thread_cond_timedwait() 106 rv = pthread_cond_signal(&cond->cond); in apr_thread_cond_signal() 119 rv = pthread_cond_broadcast(&cond->cond); in apr_thread_cond_broadcast() [all …]
|
| /freebsd-12.1/contrib/xz/src/common/ |
| H A D | mythread.h | 116 pthread_cond_t cond; member 259 int ret = pthread_cond_destroy(&cond->cond); in mythread_cond_destroy() 267 int ret = pthread_cond_signal(&cond->cond); in mythread_cond_signal() 275 int ret = pthread_cond_wait(&cond->cond, mutex); in mythread_cond_wait() 286 int ret = pthread_cond_timedwait(&cond->cond, mutex, condtime); in mythread_cond_timedwait() 309 (void)cond; in mythread_condtime_set() 454 CloseHandle(*cond); in mythread_cond_destroy() 456 (void)cond; in mythread_cond_destroy() 464 SetEvent(*cond); in mythread_cond_signal() 466 WakeConditionVariable(cond); in mythread_cond_signal() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/Sparc/ |
| H A D | SparcInstrAliases.td | 66 // b<cond> $imm 70 // b<cond>,a $imm 139 // t<cond> %icc, rs => t<cond> %icc, G0 + rs 149 // t<cond> %xcc, rs => t<cond> %xcc, G0 + rs 159 // t<cond> rs=> t<cond> %icc, G0 + rs2 164 // t<cond> rs1 + rs2 => t<cond> %icc, rs1 + rs2 169 // t<cond> %icc, imm => t<cond> %icc, G0 + imm 177 // t<cond> %xcc, imm => t<cond> %xcc, G0 + imm 186 // t<cond> imm => t<cond> G0 + imm 190 // t<cond> rs1 + imm => t<cond> rs1 + imm [all …]
|
| /freebsd-12.1/contrib/ntp/lib/isc/include/isc/ |
| H A D | assertions.h | 85 #define ISC_REQUIRE(cond) \ argument 86 ((void) ((cond) || \ 89 #cond), 0))) 95 #define ISC_ENSURE(cond) \ argument 96 ((void) ((cond) || \ 99 #cond), 0))) 105 #define ISC_INSIST(cond) \ argument 106 ((void) ((cond) || \ 109 #cond), 0))) 116 ((void) ((cond) || \ [all …]
|
| /freebsd-12.1/lib/libthr/thread/ |
| H A D | thr_cond.c | 128 if (*cond == NULL) in init_static() 129 ret = cond_init(cond, NULL); in init_static() 152 cvp = *cond; \ 160 *cond = NULL; in _thr_cond_init() 161 return (cond_init(cond, cond_attr)); in _thr_cond_init() 171 if (*cond == THR_PSHARED_PTR) { in _thr_cond_destroy() 177 __thr_pshared_destroy(cond); in _thr_cond_destroy() 180 *cond = THR_COND_DESTROYED; in _thr_cond_destroy() 186 cvp = *cond; in _thr_cond_destroy() 190 *cond = THR_COND_DESTROYED; in _thr_cond_destroy() [all …]
|
| /freebsd-12.1/contrib/openmp/runtime/src/ |
| H A D | kmp_debug.h | 37 #define KMP_ASSERT(cond) \ argument 38 if (!(cond)) { \ 45 #define KMP_DEBUG_ASSERT(cond) KMP_ASSERT(cond) argument 46 #define KMP_DEBUG_ASSERT2(cond, msg) KMP_ASSERT2(cond, msg) argument 54 #define KMP_ASSERT2(cond, msg) KMP_ASSERT(cond) argument 55 #define KMP_DEBUG_ASSERT(cond) /* Nothing */ argument 56 #define KMP_DEBUG_ASSERT2(cond, msg) /* Nothing */ argument 60 #define KMP_ASSERT(cond) /* Nothing */ argument 61 #define KMP_ASSERT2(cond, msg) /* Nothing */ argument 62 #define KMP_DEBUG_ASSERT(cond) /* Nothing */ argument [all …]
|
| /freebsd-12.1/lib/libstdthreads/ |
| H A D | cnd.c | 40 cnd_broadcast(cnd_t *cond) in cnd_broadcast() argument 43 if (pthread_cond_broadcast(cond) != 0) in cnd_broadcast() 49 cnd_destroy(cnd_t *cond) in cnd_destroy() argument 52 (void)pthread_cond_destroy(cond); in cnd_destroy() 56 cnd_init(cnd_t *cond) in cnd_init() argument 59 switch (pthread_cond_init(cond, NULL)) { in cnd_init() 70 cnd_signal(cnd_t *cond) in cnd_signal() argument 73 if (pthread_cond_signal(cond) != 0) in cnd_signal() 83 switch (pthread_cond_timedwait(cond, mtx, ts)) { in cnd_timedwait() 94 cnd_wait(cnd_t *cond, mtx_t *mtx) in cnd_wait() argument [all …]
|
| /freebsd-12.1/contrib/gcc/ |
| H A D | tree-ssa-loop-unswitch.c | 117 tree stmt, def, cond, use; in tree_may_unswitch_on() local 136 cond = COND_EXPR_COND (stmt); in tree_may_unswitch_on() 140 if (integer_zerop (cond) || integer_nonzerop (cond)) in tree_may_unswitch_on() 143 return cond; in tree_may_unswitch_on() 167 return cond; in simplify_using_entry_checks() 171 return cond; in simplify_using_entry_checks() 185 tree cond = NULL_TREE, stmt; in tree_unswitch_single_loop() local 229 cond = simplify_using_entry_checks (loop, cond); in tree_unswitch_single_loop() 231 if (integer_nonzerop (cond)) in tree_unswitch_single_loop() 237 else if (integer_zerop (cond)) in tree_unswitch_single_loop() [all …]
|
| H A D | tree-ssa-phiopt.c | 380 tree new, cond; in conditional_replacement() local 415 old_result = cond; in conditional_replacement() 416 cond = new_var; in conditional_replacement() 423 cond = fold_convert (TREE_TYPE (result), cond); in conditional_replacement() 479 cond = cond1; in conditional_replacement() 502 if (is_gimple_cast (cond) in conditional_replacement() 548 tree cond; in value_replacement() local 562 if (TREE_CODE (cond) != NE_EXPR && TREE_CODE (cond) != EQ_EXPR) in value_replacement() 627 tree cond, new; in minmax_replacement() local 640 cmp = TREE_CODE (cond); in minmax_replacement() [all …]
|
| H A D | tree-if-conv.c | 169 tree cond; in tree_if_conversion() local 174 cond = bb->aux; in tree_if_conversion() 182 cond = tree_if_convert_stmt (loop, t, cond, &itr); in tree_if_conversion() 252 return cond; in tree_if_convert_stmt() 599 if (cond) in add_to_predicate_list() 603 cond = new_cond; in add_to_predicate_list() 605 bb->aux = cond; in add_to_predicate_list() 634 cond = force_gimple_operand (unshare_expr (cond), in add_to_dst_predicate_list() 746 *cond = invert_truthvalue (*cond); in find_phi_replacement_condition() 768 *cond = force_gimple_operand (unshare_expr (*cond), &new_stmts, in find_phi_replacement_condition() [all …]
|
| H A D | c-omp.c | 245 if (cond == NULL_TREE) in c_finish_omp_for() 254 if (EXPR_HAS_LOCATION (cond)) in c_finish_omp_for() 255 elocus = EXPR_LOCATION (cond); in c_finish_omp_for() 258 || TREE_CODE (cond) == LE_EXPR in c_finish_omp_for() 259 || TREE_CODE (cond) == GT_EXPR in c_finish_omp_for() 260 || TREE_CODE (cond) == GE_EXPR) in c_finish_omp_for() 282 TREE_OPERAND (cond, 1)); in c_finish_omp_for() 289 TREE_OPERAND (cond, 0)); in c_finish_omp_for() 296 TREE_SET_CODE (cond, swap_tree_comparison (TREE_CODE (cond))); in c_finish_omp_for() 297 TREE_OPERAND (cond, 1) = TREE_OPERAND (cond, 0); in c_finish_omp_for() [all …]
|
| H A D | ifcvt.c | 628 rtx cond = if_info->cond; in noce_emit_store_flag() local 822 rtx cond = if_info->cond; in noce_try_move() local 1053 rtx cond = if_info->cond; in noce_try_addcc() local 1713 if_info->cond = cond; in noce_try_minmax() 1835 if_info->cond = cond; in noce_try_abs() 1853 cond = if_info->cond; in noce_try_sign_mask() 1924 cond = if_info->cond; in noce_try_bitop() 1936 cond = XEXP (cond, 0); in noce_try_bitop() 2092 if_info->cond = cond; in noce_init_if_info() 2196 cond = if_info.cond; in noce_process_if_block() [all …]
|
| H A D | tree-ssa-forwprop.c | 201 test_var = cond; in forward_propagate_into_cond_1() 203 test_var = TREE_OPERAND (cond, 0); in forward_propagate_into_cond_1() 427 tree op0 = TREE_OPERAND (cond, 0); in find_equivalent_equality_comparison() 428 tree op1 = TREE_OPERAND (cond, 1); in find_equivalent_equality_comparison() 486 return build2 (TREE_CODE (cond), TREE_TYPE (cond), in find_equivalent_equality_comparison() 501 tree cond = COND_EXPR_COND (stmt); in simplify_cond() local 503 if (COMPARISON_CLASS_P (cond)) in simplify_cond() 514 if (TREE_CODE (cond) == EQ_EXPR || TREE_CODE (cond) == NE_EXPR) in simplify_cond() 912 tree cond = SWITCH_COND (stmt); in simplify_switch_expr() local 918 if (TREE_CODE (cond) == SSA_NAME) in simplify_switch_expr() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/Mips/ |
| H A D | Mips64r6InstrInfo.td | 206 def : MipsPat<(select i64:$cond, i64:$t, i64:$f), 207 (OR64 (SELNEZ64 i64:$t, i64:$cond), 208 (SELEQZ64 i64:$f, i64:$cond))>, 211 (OR64 (SELEQZ64 i64:$t, i64:$cond), 212 (SELNEZ64 i64:$f, i64:$cond))>, 215 (OR64 (SELNEZ64 i64:$t, i64:$cond), 216 (SELEQZ64 i64:$f, i64:$cond))>, 258 def : MipsPat<(select i32:$cond, i64:$t, i64:$f), 283 def : MipsPat<(select i32:$cond, i64:$t, immz), 284 (SELNEZ64 i64:$t, (SLL64_32 i32:$cond))>, [all …]
|
| /freebsd-12.1/sys/compat/linuxkpi/common/include/linux/ |
| H A D | wait.h | 50 #define might_sleep_if(cond) do { \ argument 51 if (cond) { might_sleep(); } \ 156 if (cond) \ 166 __ret = !!(cond); \ 179 #define wait_event(wqh, cond) do { \ argument 184 #define wait_event_timeout(wqh, cond, timeout) ({ \ argument 189 #define wait_event_killable(wqh, cond) ({ \ argument 190 __wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT, \ 194 #define wait_event_interruptible(wqh, cond) ({ \ argument 228 #define wait_event_lock_irq(wqh, cond, lock) ({ \ argument [all …]
|
| /freebsd-12.1/contrib/libevent/test/ |
| H A D | regress_thread.c | 71 void *cond; member 109 assert(cw.cond); in basic_thread() 261 struct cond_wait *cond; member 275 r = EVTHREAD_COND_WAIT_TIMED(rec->cond->cond, rec->cond->lock, in wait_for_condition() 278 r = EVTHREAD_COND_WAIT(rec->cond->cond, rec->cond->lock); in wait_for_condition() 295 struct cond_wait cond; in thread_conditions_simple() local 310 EVTHREAD_ALLOC_COND(cond.cond); in thread_conditions_simple() 311 tt_assert(cond.lock); in thread_conditions_simple() 312 tt_assert(cond.cond); in thread_conditions_simple() 315 alerted[i].cond = &cond; in thread_conditions_simple() [all …]
|
| /freebsd-12.1/contrib/ntp/sntp/libevent/test/ |
| H A D | regress_thread.c | 71 void *cond; member 109 assert(cw.cond); in basic_thread() 261 struct cond_wait *cond; member 275 r = EVTHREAD_COND_WAIT_TIMED(rec->cond->cond, rec->cond->lock, in wait_for_condition() 278 r = EVTHREAD_COND_WAIT(rec->cond->cond, rec->cond->lock); in wait_for_condition() 295 struct cond_wait cond; in thread_conditions_simple() local 310 EVTHREAD_ALLOC_COND(cond.cond); in thread_conditions_simple() 311 tt_assert(cond.lock); in thread_conditions_simple() 312 tt_assert(cond.cond); in thread_conditions_simple() 315 alerted[i].cond = &cond; in thread_conditions_simple() [all …]
|