| /freebsd-12-stable/contrib/libevent/ |
| D | evthread_win32.c | 130 CONDITION_VARIABLE *cond = mm_malloc(sizeof(CONDITION_VARIABLE)); in evthread_win32_condvar_alloc() local 131 if (!cond) in evthread_win32_condvar_alloc() 133 InitializeConditionVariable_fn(cond); in evthread_win32_condvar_alloc() 134 return cond; in evthread_win32_condvar_alloc() 140 CONDITION_VARIABLE *cond = cond_; in evthread_win32_condvar_free() local 142 mm_free(cond); in evthread_win32_condvar_free() 146 evthread_win32_condvar_signal(void *cond, int broadcast) in evthread_win32_condvar_signal() argument 148 CONDITION_VARIABLE *cond = cond_; in evthread_win32_condvar_signal() local 150 WakeAllConditionVariable_fn(cond); in evthread_win32_condvar_signal() 152 WakeConditionVariable_fn(cond); in evthread_win32_condvar_signal() [all …]
|
| D | evthread-internal.h | 159 #define EVTHREAD_FREE_COND(cond) \ argument 161 if (cond) \ 162 evthread_cond_fns_.free_condition((cond)); \ 165 #define EVTHREAD_COND_SIGNAL(cond) \ argument 166 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 0) : 0 ) 168 #define EVTHREAD_COND_BROADCAST(cond) \ argument 169 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 1) : 0 ) 174 #define EVTHREAD_COND_WAIT(cond, lock) \ argument 175 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), NULL) : 0 ) 178 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, tv) \ argument [all …]
|
| D | evthread_pthread.c | 106 pthread_cond_t *cond = mm_malloc(sizeof(pthread_cond_t)); in evthread_posix_cond_alloc() local 107 if (!cond) in evthread_posix_cond_alloc() 109 if (pthread_cond_init(cond, NULL)) { 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() [all …]
|
| /freebsd-12-stable/contrib/ntp/sntp/libevent/ |
| D | evthread_win32.c | 130 CONDITION_VARIABLE *cond = mm_malloc(sizeof(CONDITION_VARIABLE)); in evthread_win32_condvar_alloc() local 131 if (!cond) in evthread_win32_condvar_alloc() 133 InitializeConditionVariable_fn(cond); in evthread_win32_condvar_alloc() 134 return cond; in evthread_win32_condvar_alloc() 140 CONDITION_VARIABLE *cond = cond_; in evthread_win32_condvar_free() local 142 mm_free(cond); in evthread_win32_condvar_free() 146 evthread_win32_condvar_signal(void *cond, int broadcast) in evthread_win32_condvar_signal() argument 148 CONDITION_VARIABLE *cond = cond_; in evthread_win32_condvar_signal() local 150 WakeAllConditionVariable_fn(cond); in evthread_win32_condvar_signal() 152 WakeConditionVariable_fn(cond); in evthread_win32_condvar_signal() [all …]
|
| D | evthread-internal.h | 159 #define EVTHREAD_FREE_COND(cond) \ argument 161 if (cond) \ 162 evthread_cond_fns_.free_condition((cond)); \ 165 #define EVTHREAD_COND_SIGNAL(cond) \ argument 166 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 0) : 0 ) 168 #define EVTHREAD_COND_BROADCAST(cond) \ argument 169 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 1) : 0 ) 174 #define EVTHREAD_COND_WAIT(cond, lock) \ argument 175 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), NULL) : 0 ) 178 #define EVTHREAD_COND_WAIT_TIMED(cond, lock, tv) \ argument [all …]
|
| D | evthread_pthread.c | 106 pthread_cond_t *cond = mm_malloc(sizeof(pthread_cond_t)); in evthread_posix_cond_alloc() local 107 if (!cond) in evthread_posix_cond_alloc() 109 if (pthread_cond_init(cond, NULL)) { 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() [all …]
|
| /freebsd-12-stable/contrib/apr/locks/unix/ |
| 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() 77 APR_DECLARE(apr_status_t) apr_thread_cond_timedwait(apr_thread_cond_t *cond, in apr_thread_cond_timedwait() argument 83 rv = pthread_cond_wait(&cond->cond, &mutex->mutex); in apr_thread_cond_timedwait() 98 rv = pthread_cond_timedwait(&cond->cond, &mutex->mutex, &abstime); in apr_thread_cond_timedwait() [all …]
|
| /freebsd-12-stable/contrib/ntp/libntp/lib/isc/win32/ |
| D | condition.c | 32 isc_condition_init(isc_condition_t *cond) { in isc_condition_init() argument 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() 98 find_thread_condition(unsigned long thrd, isc_condition_t *cond, in find_thread_condition() argument 108 for (threadcond = ISC_LIST_HEAD(cond->threadlist); in find_thread_condition() 121 return (register_thread(thrd, cond, threadcondp)); in find_thread_condition() 125 isc_condition_signal(isc_condition_t *cond) { in isc_condition_signal() argument 131 REQUIRE(cond != NULL); in isc_condition_signal() [all …]
|
| /freebsd-12-stable/contrib/sendmail/include/sm/ |
| D | assert.h | 66 # define SM_REQUIRE(cond) \ argument 67 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \ 68 "SM_REQUIRE(" #cond ") failed"), 0))) 70 # define SM_REQUIRE(cond) \ argument 71 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \ 75 # define SM_REQUIRE(cond) ((void) 0) argument 83 # define SM_ENSURE(cond) \ argument 84 ((void) ((cond) || (sm_abort_at(__FILE__, __LINE__, \ 85 "SM_ENSURE(" #cond ") failed"), 0))) 87 # define SM_ENSURE(cond) \ argument [all …]
|
| /freebsd-12-stable/contrib/xz/src/common/ |
| D | mythread.h | 116 pthread_cond_t cond; member 235 ret = pthread_cond_init(&mycond->cond, &condattr); in mythread_cond_init() 253 return pthread_cond_init(&mycond->cond, NULL); in mythread_cond_init() 257 mythread_cond_destroy(mythread_cond *cond) in mythread_cond_destroy() argument 259 int ret = pthread_cond_destroy(&cond->cond); in mythread_cond_destroy() 265 mythread_cond_signal(mythread_cond *cond) in mythread_cond_signal() argument 267 int ret = pthread_cond_signal(&cond->cond); in mythread_cond_signal() 273 mythread_cond_wait(mythread_cond *cond, mythread_mutex *mutex) in mythread_cond_wait() argument 275 int ret = pthread_cond_wait(&cond->cond, mutex); in mythread_cond_wait() 283 mythread_cond_timedwait(mythread_cond *cond, mythread_mutex *mutex, in mythread_cond_timedwait() argument [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Sparc/ |
| D | SparcInstrAliases.td | 14 // mov<cond> <ccreg> rs2, rd 15 multiclass intcond_mov_alias<string cond, int condVal, string ccreg, 19 // mov<cond> (%icc|%xcc), rs2, rd 20 def : InstAlias<!strconcat(!strconcat(!strconcat("mov", cond), ccreg), 24 // mov<cond> (%icc|%xcc), simm11, rd 25 def : InstAlias<!strconcat(!strconcat(!strconcat("mov", cond), ccreg), 29 // fmovs<cond> (%icc|%xcc), $rs2, $rd 30 def : InstAlias<!strconcat(!strconcat(!strconcat("fmovs", cond), ccreg), 34 // fmovd<cond> (%icc|%xcc), $rs2, $rd 35 def : InstAlias<!strconcat(!strconcat(!strconcat("fmovd", cond), ccreg), [all …]
|
| /freebsd-12-stable/contrib/ntp/libntp/lib/isc/include/isc/ |
| D | assertions.h | 85 #define ISC_REQUIRE(cond) \ argument 86 ((void) ((cond) || \ 89 #cond), 0))) 91 #define ISC_REQUIRE(cond) ((void) 0) argument 95 #define ISC_ENSURE(cond) \ argument 96 ((void) ((cond) || \ 99 #cond), 0))) 101 #define ISC_ENSURE(cond) ((void) 0) argument 105 #define ISC_INSIST(cond) \ argument 106 ((void) ((cond) || \ [all …]
|
| /freebsd-12-stable/lib/libthr/thread/ |
| D | thr_cond.c | 52 int __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, 54 static int cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr); 55 static int cond_wait_common(pthread_cond_t *cond, pthread_mutex_t *mutex, 57 static int cond_signal_common(pthread_cond_t *cond); 58 static int cond_broadcast_common(pthread_cond_t *cond); 94 cond_init(pthread_cond_t *cond, const pthread_condattr_t *cond_attr) in cond_init() argument 108 cvp = __thr_pshared_offpage(cond, 1); in cond_init() 117 *cond = pshared ? THR_PSHARED_PTR : cvp; in cond_init() 122 init_static(struct pthread *thread, pthread_cond_t *cond) in init_static() argument 128 if (*cond == NULL) in init_static() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/openmp/runtime/src/ |
| D | kmp_debug.h | 36 #define KMP_ASSERT(cond) \ argument 37 if (!(cond)) { \ 38 __kmp_debug_assert(#cond, __FILE__, __LINE__); \ 40 #define KMP_ASSERT2(cond, msg) \ argument 41 if (!(cond)) { \ 44 #define KMP_DEBUG_ASSERT(cond) KMP_ASSERT(cond) argument 45 #define KMP_DEBUG_ASSERT2(cond, msg) KMP_ASSERT2(cond, msg) argument 49 #define KMP_ASSERT(cond) \ argument 50 if (!(cond)) { \ 53 #define KMP_ASSERT2(cond, msg) KMP_ASSERT(cond) argument [all …]
|
| /freebsd-12-stable/lib/libstdthreads/ |
| 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() 79 cnd_timedwait(cnd_t *restrict cond, mtx_t *restrict mtx, in cnd_timedwait() argument 83 switch (pthread_cond_timedwait(cond, mtx, ts)) { in cnd_timedwait() [all …]
|
| /freebsd-12-stable/contrib/gcc/ |
| 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() 151 simplify_using_entry_checks (struct loop *loop, tree cond) in simplify_using_entry_checks() argument 161 && operand_equal_p (COND_EXPR_COND (stmt), cond, 0)) in simplify_using_entry_checks() 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 220 if ((cond = tree_may_unswitch_on (bbs[i], loop))) in tree_unswitch_single_loop() [all …]
|
| D | tree-ssa-phiopt.c | 380 tree new, cond; in conditional_replacement() local 402 cond = COND_EXPR_COND (last_stmt (cond_bb)); in conditional_replacement() 404 if (TREE_CODE (cond) != SSA_NAME in conditional_replacement() 405 && !lang_hooks.types_compatible_p (TREE_TYPE (cond), TREE_TYPE (result))) in conditional_replacement() 409 if (!COMPARISON_CLASS_P (cond)) in conditional_replacement() 412 tmp = create_tmp_var (TREE_TYPE (cond), NULL); in conditional_replacement() 415 old_result = cond; in conditional_replacement() 416 cond = new_var; in conditional_replacement() 422 if (!lang_hooks.types_compatible_p (TREE_TYPE (cond), TREE_TYPE (result))) in conditional_replacement() 423 cond = fold_convert (TREE_TYPE (result), cond); in conditional_replacement() [all …]
|
| 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() 192 if (cond != NULL_TREE) in tree_if_conversion() 193 add_to_predicate_list (bb_n, cond); in tree_if_conversion() 218 tree_if_convert_stmt (struct loop * loop, tree t, tree cond, in tree_if_convert_stmt() argument 225 print_generic_stmt (dump_file, cond, TDF_SLIM); in tree_if_convert_stmt() 245 tree_if_convert_cond_expr (loop, t, cond, bsi); in tree_if_convert_stmt() 246 cond = NULL_TREE; in tree_if_convert_stmt() 252 return cond; in tree_if_convert_stmt() [all …]
|
| D | c-omp.c | 207 c_finish_omp_for (location_t locus, tree decl, tree init, tree cond, in c_finish_omp_for() argument 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() 257 if (TREE_CODE (cond) == LT_EXPR 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() 262 tree op0 = TREE_OPERAND (cond, 0); in c_finish_omp_for() 263 tree op1 = TREE_OPERAND (cond, 1); in c_finish_omp_for() [all …]
|
| D | ifcvt.c | 345 rtx test_if, cond; in cond_exec_get_condition() local 351 cond = XEXP (test_if, 0); in cond_exec_get_condition() 358 enum rtx_code rev = reversed_comparison_code (cond, jump); in cond_exec_get_condition() 362 cond = gen_rtx_fmt_ee (rev, GET_MODE (cond), XEXP (cond, 0), in cond_exec_get_condition() 363 XEXP (cond, 1)); in cond_exec_get_condition() 366 return cond; in cond_exec_get_condition() 602 rtx jump, cond, cond_earliest; member 628 rtx cond = if_info->cond; in noce_emit_store_flag() local 632 cond_complex = (! general_operand (XEXP (cond, 0), VOIDmode) in noce_emit_store_flag() 633 || ! general_operand (XEXP (cond, 1), VOIDmode)); in noce_emit_store_flag() [all …]
|
| D | tree-ssa-forwprop.c | 178 forward_propagate_into_cond_1 (tree cond, tree *test_var_p) in forward_propagate_into_cond_1() argument 181 enum tree_code cond_code = TREE_CODE (cond); in forward_propagate_into_cond_1() 194 && TREE_CODE (TREE_OPERAND (cond, 0)) == SSA_NAME in forward_propagate_into_cond_1() 195 && CONSTANT_CLASS_P (TREE_OPERAND (cond, 1)) in forward_propagate_into_cond_1() 196 && INTEGRAL_TYPE_P (TREE_TYPE (TREE_OPERAND (cond, 1))))) in forward_propagate_into_cond_1() 201 test_var = cond; in forward_propagate_into_cond_1() 203 test_var = TREE_OPERAND (cond, 0); in forward_propagate_into_cond_1() 247 t = int_const_binop (new_code, TREE_OPERAND (cond, 1), op1, 0); in forward_propagate_into_cond_1() 257 else if (TREE_CODE (cond) == SSA_NAME in forward_propagate_into_cond_1() 258 || integer_zerop (TREE_OPERAND (cond, 1)) in forward_propagate_into_cond_1() [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
| D | Mips64r6InstrInfo.td | 209 def : MipsPat<(select i64:$cond, i64:$t, i64:$f), 210 (OR64 (SELNEZ64 i64:$t, i64:$cond), 211 (SELEQZ64 i64:$f, i64:$cond))>, 213 def : MipsPat<(select (i32 (seteq i64:$cond, immz)), i64:$t, i64:$f), 214 (OR64 (SELEQZ64 i64:$t, i64:$cond), 215 (SELNEZ64 i64:$f, i64:$cond))>, 217 def : MipsPat<(select (i32 (setne i64:$cond, immz)), i64:$t, i64:$f), 218 (OR64 (SELNEZ64 i64:$t, i64:$cond), 219 (SELEQZ64 i64:$f, i64:$cond))>, 221 def : MipsPat<(select (i32 (seteq i64:$cond, immZExt16_64:$imm)), i64:$t, i64:$f), [all …]
|
| /freebsd-12-stable/contrib/llvm-project/llvm/lib/Target/X86/ |
| D | X86InstrCMovSetCC.td | 20 : I<0x40, MRMSrcRegCC, (outs GR16:$dst), (ins GR16:$src1, GR16:$src2, ccode:$cond), 21 "cmov${cond}{w}\t{$src2, $dst|$dst, $src2}", 23 (X86cmov GR16:$src1, GR16:$src2, timm:$cond, EFLAGS))]>, 26 : I<0x40, MRMSrcRegCC, (outs GR32:$dst), (ins GR32:$src1, GR32:$src2, ccode:$cond), 27 "cmov${cond}{l}\t{$src2, $dst|$dst, $src2}", 29 (X86cmov GR32:$src1, GR32:$src2, timm:$cond, EFLAGS))]>, 32 :RI<0x40, MRMSrcRegCC, (outs GR64:$dst), (ins GR64:$src1, GR64:$src2, ccode:$cond), 33 "cmov${cond}{q}\t{$src2, $dst|$dst, $src2}", 35 (X86cmov GR64:$src1, GR64:$src2, timm:$cond, EFLAGS))]>, TB; 41 : I<0x40, MRMSrcMemCC, (outs GR16:$dst), (ins GR16:$src1, i16mem:$src2, ccode:$cond), [all …]
|
| /freebsd-12-stable/sys/compat/linuxkpi/common/include/linux/ |
| D | wait.h | 51 #define might_sleep_if(cond) do { \ argument 52 if (cond) { might_sleep(); } \ 151 #define __wait_event_common(wqh, cond, timeout, state, lock) ({ \ argument 159 if (cond) \ 169 __ret = !!(cond); \ 182 #define wait_event(wqh, cond) do { \ argument 183 (void) __wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT, \ 187 #define wait_event_timeout(wqh, cond, timeout) ({ \ argument 188 __wait_event_common(wqh, cond, timeout, TASK_UNINTERRUPTIBLE, \ 192 #define wait_event_killable(wqh, cond) ({ \ argument [all …]
|
| /freebsd-12-stable/contrib/ntp/sntp/libevent/test/ |
| D | regress_thread.c | 71 void *cond; member 79 EVTHREAD_COND_BROADCAST(cw->cond); in wake_all_timeout() 89 EVTHREAD_COND_SIGNAL(cw->cond); in wake_one_timeout() 107 EVTHREAD_ALLOC_COND(cw.cond); in basic_thread() 109 assert(cw.cond); in basic_thread() 123 assert(EVTHREAD_COND_WAIT(cw.cond, cw.lock) == 0); in basic_thread() 138 EVTHREAD_FREE_COND(cw.cond); in basic_thread() 261 struct cond_wait *cond; member 273 EVLOCK_LOCK(rec->cond->lock, 0); in wait_for_condition() 275 r = EVTHREAD_COND_WAIT_TIMED(rec->cond->cond, rec->cond->lock, in wait_for_condition() [all …]
|