Home
last modified time | relevance | path

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

12345678910>>...14

/freebsd/contrib/ntp/sntp/libevent/
H A Devthread_win32.c131 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 Devthread-internal.h159 #define EVTHREAD_FREE_COND(cond) \ argument
161 if (cond) \
166 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 0) : 0 )
169 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 1) : 0 )
175 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), NULL) : 0 )
179 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), (tv)) : 0 )
283 if (cond) \
288 ( (cond) ? evthreadimpl_cond_signal_((cond), 0) : 0 )
291 ( (cond) ? evthreadimpl_cond_signal_((cond), 1) : 0 )
297 ( (cond) ? evthreadimpl_cond_wait_((cond), (lock), NULL) : 0 )
[all …]
H A Devthread_pthread.c107 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/contrib/libevent/
H A Devthread_win32.c131 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 Devthread-internal.h159 #define EVTHREAD_FREE_COND(cond) \ argument
161 if (cond) \
166 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 0) : 0 )
169 ( (cond) ? evthread_cond_fns_.signal_condition((cond), 1) : 0 )
175 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), NULL) : 0 )
179 ( (cond) ? evthread_cond_fns_.wait_condition((cond), (lock), (tv)) : 0 )
283 if (cond) \
288 ( (cond) ? evthreadimpl_cond_signal_((cond), 0) : 0 )
291 ( (cond) ? evthreadimpl_cond_signal_((cond), 1) : 0 )
297 ( (cond) ? evthreadimpl_cond_wait_((cond), (lock), NULL) : 0 )
[all …]
H A Devthread_pthread.c107 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/contrib/sendmail/include/sm/
H A Dassert.h66 # 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 …]
H A Dtest.h22 # define SM_TEST(cond) sm_test(cond, #cond, __FILE__, __LINE__) argument
24 # define SM_TEST(cond) sm_test(cond, "cond", __FILE__, __LINE__) argument
/freebsd/contrib/ntp/libntp/lib/isc/win32/
H A Dcondition.c35 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/contrib/ntp/libntp/lib/isc/include/isc/
H A Dassertions.h85 #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/contrib/xz/src/common/
H A Dmythread.h140 pthread_cond_t cond; member
285 int ret = pthread_cond_destroy(&cond->cond); in mythread_cond_destroy()
293 int ret = pthread_cond_signal(&cond->cond); in mythread_cond_signal()
301 int ret = pthread_cond_wait(&cond->cond, mutex); in mythread_cond_wait()
312 int ret = pthread_cond_timedwait(&cond->cond, mutex, condtime); in mythread_cond_timedwait()
335 (void)cond; in mythread_condtime_set()
481 CloseHandle(*cond); in mythread_cond_destroy()
483 (void)cond; in mythread_cond_destroy()
491 SetEvent(*cond); in mythread_cond_signal()
493 WakeConditionVariable(cond); in mythread_cond_signal()
[all …]
/freebsd/lib/libthr/thread/
H A Dthr_cond.c126 if (*cond == NULL) in init_static()
127 ret = cond_init(cond, NULL); in init_static()
150 cvp = *cond; \
158 *cond = NULL; in _thr_cond_init()
159 return (cond_init(cond, cond_attr)); in _thr_cond_init()
169 if (*cond == THR_PSHARED_PTR) { in _thr_cond_destroy()
175 __thr_pshared_destroy(cond); in _thr_cond_destroy()
178 *cond = THR_COND_DESTROYED; in _thr_cond_destroy()
184 cvp = *cond; in _thr_cond_destroy()
188 *cond = THR_COND_DESTROYED; in _thr_cond_destroy()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrCMovSetCC.td21 "cmov${cond}{w}\t{$src2, $dst|$dst, $src2}",
23 (X86cmov GR16:$src1, GR16:$src2, timm:$cond, EFLAGS))]>,
27 "cmov${cond}{l}\t{$src2, $dst|$dst, $src2}",
33 "cmov${cond}{q}\t{$src2, $dst|$dst, $src2}",
42 "cmov${cond}{w}\t{$src2, $dst|$dst, $src2}",
47 "cmov${cond}{l}\t{$src2, $dst|$dst, $src2}",
52 "cmov${cond}{q}\t{$src2, $dst|$dst, $src2}",
54 timm:$cond, EFLAGS))]>, TB;
78 "set${cond}\t$dst",
79 [(set GR8:$dst, (X86setcc timm:$cond, EFLAGS))]>,
[all …]
/freebsd/lib/libstdthreads/
H A Dcnd.c36 cnd_broadcast(cnd_t *cond) in cnd_broadcast() argument
39 if (pthread_cond_broadcast(cond) != 0) in cnd_broadcast()
45 cnd_destroy(cnd_t *cond) in cnd_destroy() argument
48 (void)pthread_cond_destroy(cond); in cnd_destroy()
52 cnd_init(cnd_t *cond) in cnd_init() argument
55 switch (pthread_cond_init(cond, NULL)) { in cnd_init()
66 cnd_signal(cnd_t *cond) in cnd_signal() argument
69 if (pthread_cond_signal(cond) != 0) in cnd_signal()
79 switch (pthread_cond_timedwait(cond, mtx, ts)) { in cnd_timedwait()
90 cnd_wait(cnd_t *cond, mtx_t *mtx) in cnd_wait() argument
[all …]
/freebsd/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_debug.h36 #define KMP_ASSERT(cond) \ argument
37 if (!(cond)) { \
44 #define KMP_DEBUG_ASSERT(cond) KMP_ASSERT(cond) argument
45 #define KMP_DEBUG_ASSERT2(cond, msg) KMP_ASSERT2(cond, msg) argument
53 #define KMP_ASSERT2(cond, msg) KMP_ASSERT(cond) argument
54 #define KMP_DEBUG_ASSERT(cond) /* Nothing */ argument
55 #define KMP_DEBUG_ASSERT2(cond, msg) /* Nothing */ argument
59 #define KMP_ASSERT(cond) /* Nothing */ argument
60 #define KMP_ASSERT2(cond, msg) /* Nothing */ argument
61 #define KMP_DEBUG_ASSERT(cond) /* Nothing */ argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcInstrAliases.td93 // b<cond> $imm
97 // b<cond>,a $imm
166 // t<cond> %icc, rs => t<cond> %icc, G0 + rs
176 // t<cond> %xcc, rs => t<cond> %xcc, G0 + rs
186 // t<cond> rs=> t<cond> %icc, G0 + rs2
191 // t<cond> rs1 + rs2 => t<cond> %icc, rs1 + rs2
196 // t<cond> %icc, imm => t<cond> %icc, G0 + imm
204 // t<cond> %xcc, imm => t<cond> %xcc, G0 + imm
213 // t<cond> imm => t<cond> G0 + imm
217 // t<cond> rs1 + imm => t<cond> rs1 + imm
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMips64r6InstrInfo.td209 def : MipsPat<(select i64:$cond, i64:$t, i64:$f),
210 (OR64 (SELNEZ64 i64:$t, i64:$cond),
211 (SELEQZ64 i64:$f, i64:$cond))>,
214 (OR64 (SELEQZ64 i64:$t, i64:$cond),
215 (SELNEZ64 i64:$f, i64:$cond))>,
218 (OR64 (SELNEZ64 i64:$t, i64:$cond),
219 (SELEQZ64 i64:$f, i64:$cond))>,
261 def : MipsPat<(select i32:$cond, i64:$t, i64:$f),
286 def : MipsPat<(select i32:$cond, i64:$t, immz),
287 (SELNEZ64 i64:$t, (SLL64_32 i32:$cond))>,
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Dwait.h49 #define might_sleep_if(cond) do { \ argument
50 if (cond) { might_sleep(); } \
157 if (cond) \
167 __ret = !!(cond); \
180 #define wait_event(wqh, cond) do { \ argument
185 #define wait_event_timeout(wqh, cond, timeout) ({ \ argument
190 #define wait_event_killable(wqh, cond) ({ \ argument
191 __wait_event_common(wqh, cond, MAX_SCHEDULE_TIMEOUT, \
195 #define wait_event_interruptible(wqh, cond) ({ \ argument
229 #define wait_event_lock_irq(wqh, cond, lock) ({ \ argument
[all …]
/freebsd/contrib/ntp/sntp/libevent/test/
H A Dregress_thread.c71 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/contrib/libevent/test/
H A Dregress_thread.c71 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/contrib/netbsd-tests/lib/libpthread/
H A Dt_cond.c46 static pthread_cond_t cond; variable
65 PTHREAD_REQUIRE(pthread_cond_signal(&cond)); in signal_delay_wait_threadfunc()
84 PTHREAD_REQUIRE(pthread_cond_init(&cond, NULL)); in ATF_TC_BODY()
124 PTHREAD_REQUIRE(pthread_cond_signal(&cond)); in signal_before_unlock_threadfunc()
145 PTHREAD_REQUIRE(pthread_cond_init(&cond, NULL)); in ATF_TC_BODY()
503 PTHREAD_REQUIRE(pthread_cond_broadcast(&cond)); in destroy_busy_threadfunc()
532 PTHREAD_REQUIRE(pthread_cond_signal(&cond)); in ATF_TC_BODY()
533 PTHREAD_REQUIRE(pthread_cond_destroy(&cond)); in ATF_TC_BODY()
590 PTHREAD_REQUIRE(pthread_cond_destroy(&cond)); in ATF_TC_BODY()
629 PTHREAD_REQUIRE(pthread_cond_signal(&cond)); in ATF_TC_BODY()
[all …]
/freebsd/sys/contrib/zstd/lib/common/
H A Dthreading.c103 int ZSTD_pthread_cond_init(ZSTD_pthread_cond_t* cond, pthread_condattr_t const* attr) in ZSTD_pthread_cond_init() argument
105 *cond = (pthread_cond_t*)ZSTD_malloc(sizeof(pthread_cond_t)); in ZSTD_pthread_cond_init()
106 if (!*cond) in ZSTD_pthread_cond_init()
108 return pthread_cond_init(*cond, attr); in ZSTD_pthread_cond_init()
111 int ZSTD_pthread_cond_destroy(ZSTD_pthread_cond_t* cond) in ZSTD_pthread_cond_destroy() argument
113 if (!*cond) in ZSTD_pthread_cond_destroy()
116 int const ret = pthread_cond_destroy(*cond); in ZSTD_pthread_cond_destroy()
117 ZSTD_free(*cond); in ZSTD_pthread_cond_destroy()
/freebsd/lib/libc/resolv/
H A 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
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/dd/
H A Ddd_interceptors.cpp165 if (!force && cond != 0) in init_cond()
166 return (pthread_cond_t*)cond; in init_cond()
173 return (pthread_cond_t*)cond; in init_cond()
180 return REAL(pthread_cond_init)(cond, a); in INTERCEPTOR()
185 pthread_cond_t *cond = init_cond(c); in INTERCEPTOR() local
196 pthread_cond_t *cond = init_cond(c); in INTERCEPTOR() local
206 pthread_cond_t *cond = init_cond(c); in INTERCEPTOR() local
207 return REAL(pthread_cond_signal)(cond); in INTERCEPTOR()
212 pthread_cond_t *cond = init_cond(c); in INTERCEPTOR() local
218 pthread_cond_t *cond = init_cond(c); in INTERCEPTOR() local
[all …]
/freebsd/contrib/atf/atf-c/detail/
H A Dsanity.c59 atf_sanity_inv(const char *file, int line, const char *cond) in atf_sanity_inv() argument
61 fail("Invariant check failed at %s:%d: %s", file, line, cond); in atf_sanity_inv()
65 atf_sanity_pre(const char *file, int line, const char *cond) in atf_sanity_pre() argument
67 fail("Precondition check failed at %s:%d: %s", file, line, cond); in atf_sanity_pre()
71 atf_sanity_post(const char *file, int line, const char *cond) in atf_sanity_post() argument
73 fail("Postcondition check failed at %s:%d: %s", file, line, cond); in atf_sanity_post()

12345678910>>...14