Home
last modified time | relevance | path

Searched refs:thrd_success (Results 1 – 24 of 24) sorted by relevance

/netbsd-src/tests/lib/libpthread/
H A Dt_mtx.c52 ATF_REQUIRE_EQ(mtx_init(&m, mtx_plain), thrd_success); in ATF_TC_BODY()
55 ATF_REQUIRE_EQ(mtx_init(&m, mtx_plain | mtx_recursive), thrd_success); in ATF_TC_BODY()
58 ATF_REQUIRE_EQ(mtx_init(&m, mtx_timed), thrd_success); in ATF_TC_BODY()
61 ATF_REQUIRE_EQ(mtx_init(&m, mtx_timed | mtx_recursive), thrd_success); in ATF_TC_BODY()
81 ATF_REQUIRE_EQ(mtx_init(&m, mtx_plain), thrd_success); in ATF_TC_BODY()
82 ATF_REQUIRE_EQ(mtx_lock(&m), thrd_success); in ATF_TC_BODY()
83 ATF_REQUIRE_EQ(mtx_unlock(&m), thrd_success); in ATF_TC_BODY()
86 ATF_REQUIRE_EQ(mtx_init(&m, mtx_timed), thrd_success); in ATF_TC_BODY()
87 ATF_REQUIRE_EQ(mtx_lock(&m), thrd_success); in ATF_TC_BODY()
88 ATF_REQUIRE_EQ(mtx_unlock(&m), thrd_success); in ATF_TC_BODY()
[all …]
H A Dt_cnd.c53 ATF_REQUIRE_EQ(cnd_init(&c), thrd_success); in ATF_TC_BODY()
70 ATF_REQUIRE_EQ(mtx_lock(&b_m), thrd_success); in b_func()
72 ATF_REQUIRE_EQ(cnd_wait(&b_c, &b_m), thrd_success); in b_func()
74 ATF_REQUIRE_EQ(mtx_unlock(&b_m), thrd_success); in b_func()
77 ATF_REQUIRE_EQ(cnd_signal(&b_c), thrd_success); in b_func()
92 ATF_REQUIRE_EQ(mtx_init(&b_m, mtx_plain), thrd_success); in cnd_notify()
93 ATF_REQUIRE_EQ(cnd_init(&b_c), thrd_success); in cnd_notify()
96 ATF_REQUIRE_EQ(thrd_create(&t[i], b_func, n), thrd_success); in cnd_notify()
99 ATF_REQUIRE_EQ(mtx_lock(&b_m), thrd_success); in cnd_notify()
101 ATF_REQUIRE_EQ(mtx_unlock(&b_m), thrd_success); in cnd_notify()
[all …]
H A Dt_tss.c52 ATF_REQUIRE_EQ(tss_create(&s, NULL), thrd_success); in ATF_TC_BODY()
70 ATF_REQUIRE_EQ(tss_create(&s, NULL), thrd_success); in ATF_TC_BODY()
72 ATF_REQUIRE_EQ(tss_set(s, v), thrd_success); in ATF_TC_BODY()
100 ATF_REQUIRE_EQ(tss_create(&s, c_destructor_main), thrd_success); in ATF_TC_BODY()
101 ATF_REQUIRE_EQ(tss_set(s, v), thrd_success); in ATF_TC_BODY()
142 ATF_REQUIRE_EQ(tss_set(s_nonempty, v), thrd_success); in t_func()
152 thrd_success); in ATF_TC_BODY()
154 thrd_success); in ATF_TC_BODY()
156 ATF_REQUIRE_EQ(thrd_create(&t, t_func, NULL), thrd_success); in ATF_TC_BODY()
157 ATF_REQUIRE_EQ(thrd_join(t, NULL), thrd_success); in ATF_TC_BODY()
H A Dt_thrd.c71 ATF_REQUIRE_EQ(thrd_create(&t, tcr_func, v), thrd_success); in ATF_TC_BODY()
72 ATF_REQUIRE_EQ(thrd_join(t, &b), thrd_success); in ATF_TC_BODY()
96 ATF_REQUIRE_EQ(thrd_create(&t, tcur_func, NULL), thrd_success); in ATF_TC_BODY()
101 ATF_REQUIRE_EQ(thrd_join(t, NULL), thrd_success); in ATF_TC_BODY()
121 ATF_REQUIRE_EQ(thrd_create(&t, tdet_func, NULL), thrd_success); in ATF_TC_BODY()
122 ATF_REQUIRE_EQ(thrd_detach(t), thrd_success); in ATF_TC_BODY()
152 ATF_REQUIRE_EQ(thrd_create(&t, tex_func, NULL), thrd_success); in ATF_TC_BODY()
153 ATF_REQUIRE_EQ(thrd_join(t, &b), thrd_success); in ATF_TC_BODY()
H A Dt_call_once.c74 ATF_REQUIRE_EQ(thrd_create(&t[i], co_func, NULL), thrd_success); in ATF_TC_BODY()
78 ATF_REQUIRE_EQ(thrd_join(t[i], NULL), thrd_success); in ATF_TC_BODY()
/netbsd-src/external/gpl3/gdb/dist/gnulib/import/glthread/
H A Dlock.c33 if (mtx_init (&lock->mutex, mtx_plain) != thrd_success) in glthread_lock_init()
44 if (mtx_lock (&lock->mutex) != thrd_success) in glthread_lock_lock()
54 if (mtx_unlock (&lock->mutex) != thrd_success) in glthread_lock_unlock()
73 if (mtx_init (&lock->lock, mtx_plain) != thrd_success in glthread_rwlock_init()
74 || cnd_init (&lock->waiting_readers) != thrd_success in glthread_rwlock_init()
75 || cnd_init (&lock->waiting_writers) != thrd_success) in glthread_rwlock_init()
88 if (mtx_lock (&lock->lock) != thrd_success) in glthread_rwlock_rdlock()
98 if (cnd_wait (&lock->waiting_readers, &lock->lock) != thrd_success) in glthread_rwlock_rdlock()
105 if (mtx_unlock (&lock->lock) != thrd_success) in glthread_rwlock_rdlock()
115 if (mtx_lock (&lock->lock) != thrd_success) in glthread_rwlock_wrlock()
[all …]
/netbsd-src/lib/libpthread/
H A Dmtx.c61 return thrd_success; in mtx_init_default()
81 return thrd_success; in mtx_init_recursive()
113 return thrd_success; in mtx_lock()
127 return thrd_success; in mtx_timedlock()
143 return thrd_success; in mtx_trylock()
158 return thrd_success; in mtx_unlock()
H A Dcnd.c47 return thrd_success; in cnd_broadcast()
71 return thrd_success; in cnd_init()
83 return thrd_success; in cnd_signal()
99 return thrd_success; in cnd_timedwait()
115 return thrd_success; in cnd_wait()
H A Dthrd.c83 return thrd_success; in thrd_create()
110 return thrd_success; in thrd_detach()
143 return thrd_success; in thrd_join()
H A Dtss.c47 return thrd_success; in tss_create()
74 return thrd_success; in tss_set()
H A Dthreads.h76 thrd_success = 0, enumerator
/netbsd-src/external/apache2/llvm/dist/libcxx/include/
H A D__threading_support572 return mtx_init(__m, mtx_plain | mtx_recursive) == thrd_success ? 0 : EINVAL;
577 return mtx_lock(__m) == thrd_success ? 0 : EINVAL;
582 return mtx_trylock(__m) == thrd_success;
587 return mtx_unlock(__m) == thrd_success ? 0 : EINVAL;
598 return mtx_lock(__m) == thrd_success ? 0 : EINVAL;
603 return mtx_trylock(__m) == thrd_success;
608 return mtx_unlock(__m) == thrd_success ? 0 : EINVAL;
620 return cnd_signal(__cv) == thrd_success ? 0 : EINVAL;
625 return cnd_broadcast(__cv) == thrd_success ? 0 : EINVAL;
630 return cnd_wait(__cv, __m) == thrd_success ? 0 : EINVAL;
[all …]
/netbsd-src/external/gpl3/gdb/dist/gnulib/import/
H A Dmbtowc-lock.h116 if (mtx_lock (lock) != thrd_success) in mbtowc_with_lock()
119 if (mtx_unlock (lock) != thrd_success) in mbtowc_with_lock()
H A Dsetlocale_null.c255 if (mtx_lock (lock) != thrd_success) in setlocale_null_with_lock()
258 if (mtx_unlock (lock) != thrd_success) in setlocale_null_with_lock()
H A Dmbtowc-lock.c120 if (mtx_init (&mutex, mtx_plain) != thrd_success) in atomic_init()
H A Dsetlocale-lock.c120 if (mtx_init (&mutex, mtx_plain) != thrd_success) in atomic_init()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/lsan/
H A Dlsan_fuchsia.cpp105 if (error != thrd_success) { in __sanitizer_thread_create_hook()
/netbsd-src/external/lgpl3/mpfr/dist/src/
H A Dmpfr-thread.h69 if ((E) != thrd_success) \
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/hwasan/
H A Dhwasan_fuchsia.cpp202 __hwasan::ThreadCreateHook(hook, error != thrd_success); in __sanitizer_thread_create_hook()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/asan/
H A Dasan_fuchsia.cc205 __asan::ThreadCreateHook(hook, error != thrd_success); in __sanitizer_thread_create_hook()
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/
H A Dasan_fuchsia.cc214 __asan::ThreadCreateHook(hook, error != thrd_success); in __sanitizer_thread_create_hook()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/asan/
H A Dasan_fuchsia.cpp255 __asan::ThreadCreateHook(hook, error != thrd_success); in __sanitizer_thread_create_hook()
/netbsd-src/external/lgpl3/mpfr/dist/
H A Dacinclude.m41823 assert(err == thrd_success);
1825 assert(err == thrd_success);
1827 assert(err == thrd_success);
H A Dconfigure15145 assert(err == thrd_success);
15147 assert(err == thrd_success);
15149 assert(err == thrd_success);