Home
last modified time | relevance | path

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

12

/third_party/musl/libc-test/src/functionalext/supplement/thread/
Dmtx_lock.c27 EXPECT_EQ("mtx_lock_0100", ret, thrd_success); in threadfuncA()
29 EXPECT_EQ("mtx_lock_0100", ret, thrd_success); in threadfuncA()
37 EXPECT_EQ("mtx_lock_0200", ret, thrd_success); in threadfuncB()
39 EXPECT_EQ("mtx_lock_0200", ret, thrd_success); in threadfuncB()
47 EXPECT_EQ("mtx_lock_0300", ret, thrd_success); in threadfuncC()
49 EXPECT_EQ("mtx_lock_0300", ret, thrd_success); in threadfuncC()
57 EXPECT_EQ("mtx_lock_0400", ret, thrd_success); in threadfuncD()
59 EXPECT_EQ("mtx_lock_0400", ret, thrd_success); in threadfuncD()
68 EXPECT_EQ("mtx_lock_0500", ret, thrd_success); in threadfuncE()
70 EXPECT_EQ("mtx_lock_0500", ret, thrd_success); in threadfuncE()
[all …]
Dcnd_timedwait.c27 if (mtx_lock(&mutex) != thrd_success) { in signal_parent()
30 if (cnd_signal(&cond) != thrd_success) { in signal_parent()
33 if (mtx_unlock(&mutex) != thrd_success) { in signal_parent()
37 thrd_exit(thrd_success); in signal_parent()
50 if (cnd_init(&cond) != thrd_success) { in cnd_timedwait_0100()
53 if (mtx_init(&mutex, mtx_plain) != thrd_success) { in cnd_timedwait_0100()
56 if (mtx_lock(&mutex) != thrd_success) { in cnd_timedwait_0100()
65 if (thrd_create(&id, signal_parent, NULL) != thrd_success) { in cnd_timedwait_0100()
69 if (cnd_timedwait(&cond, &mutex, &w_time) != thrd_success) { in cnd_timedwait_0100()
73 if (thrd_join(id, NULL) != thrd_success) { in cnd_timedwait_0100()
[all …]
Dmtx_trylock.c28 EXPECT_EQ("mtx_lock_0100", ret, thrd_success); in threadfuncA()
30 EXPECT_EQ("mtx_lock_0100", ret, thrd_success); in threadfuncA()
41 EXPECT_EQ("mtx_lock_0200", ret, thrd_success); in threadfuncB()
53 if (result != thrd_success) { in mtx_trylock_0100()
59 if (result != thrd_success) { in mtx_trylock_0100()
64 if (result != thrd_success) { in mtx_trylock_0100()
78 if (result != thrd_success) { in mtx_trylock_0200()
84 if (result != thrd_success) { in mtx_trylock_0200()
89 if (result != thrd_success) { in mtx_trylock_0200()
Dmtx_timedlock.c38 if (ret != thrd_success) { in mtx_timedlock_0100()
43 EXPECT_EQ("mtx_timedlock_0100", ret, thrd_success); in mtx_timedlock_0100()
45 if (ret != thrd_success) { in mtx_timedlock_0100()
65 if (ret != thrd_success) { in mtx_timedlock_0200()
69 if (ret != thrd_success) { in mtx_timedlock_0200()
77 if (ret != thrd_success) { in mtx_timedlock_0200()
97 if (ret != thrd_success) { in mtx_timedlock_time64_0100()
102 EXPECT_EQ("mtx_timedlock_time64_0100", ret, thrd_success); in mtx_timedlock_time64_0100()
104 if (ret != thrd_success) { in mtx_timedlock_time64_0100()
Dthrd_current.c33 thrd_exit(thrd_success); in threadfuncA()
40 thrd_exit(thrd_success); in threadfuncB()
53 if (result != thrd_success) { in thrd_current_0100()
63 if (result != thrd_success) { in thrd_current_0100()
84 if (result != thrd_success) { in thrd_current_0200()
89 if (result != thrd_success) { in thrd_current_0200()
111 if (result != thrd_success) { in thrd_current_0200()
116 if (result != thrd_success) { in thrd_current_0200()
Dthrd_equal.c33 thrd_exit(thrd_success); in threadfuncA()
40 thrd_exit(thrd_success); in threadfuncB()
53 if (result != thrd_success) { in thrd_equal_0100()
63 if (result != thrd_success) { in thrd_equal_0100()
84 if (result != thrd_success) { in thrd_equal_0200()
89 if (result != thrd_success) { in thrd_equal_0200()
111 if (result != thrd_success) { in thrd_equal_0200()
116 if (result != thrd_success) { in thrd_equal_0200()
Dtss_set.c26 if (ret != thrd_success) { in tssfunc()
30 if (ret != thrd_success) { in tssfunc()
41 thrd_exit(thrd_success); in tssfunc()
55 if (result != thrd_success) { in tss_set_0100()
60 if (result != thrd_success) { in tss_set_0100()
65 if (result != thrd_success) { in tss_set_0100()
Dcnd_broadcast.c33 thrd_exit(thrd_success); in child_wait()
46 if (cnd_init(&cond) != thrd_success) { in cnd_broadcast_0100()
50 if (mtx_init(&mutex, mtx_plain) != thrd_success) { in cnd_broadcast_0100()
55 if (thrd_create(&ids[i], child_wait, NULL) != thrd_success) { in cnd_broadcast_0100()
74 if (cnd_broadcast(&cond) != thrd_success) { in cnd_broadcast_0100()
80 if (thrd_join(ids[i], NULL) != thrd_success) { in cnd_broadcast_0100()
Dthrd_detach.c32 if (ret != thrd_success) { in threadfunc()
36 thrd_exit(thrd_success); in threadfunc()
50 if (result != thrd_success) { in thrd_detach_0100()
78 if (result != thrd_success) { in thrd_detach_0200()
88 if (result == thrd_success) { in thrd_detach_0200()
Dthrd_create.c34 thrd_exit(thrd_success); in threadfunc()
47 if (result != thrd_success) { in thrd_create_0100()
57 if (result != thrd_success) { in thrd_create_0100()
78 if (result != thrd_success) { in thrd_create_0200()
88 if (result != thrd_success) { in thrd_create_0200()
Dmtx_init.c32 EXPECT_EQ("mtx_init_0100", ret, thrd_success); in mtx_init_0100()
44 EXPECT_EQ("mtx_init_0200", ret, thrd_success); in mtx_init_0200()
56 EXPECT_EQ("mtx_init_0300", ret, thrd_success); in mtx_init_0300()
68 EXPECT_EQ("mtx_init_0400", ret, thrd_success); in mtx_init_0400()
Dthrd_join.c44 if (result != thrd_success) { in thrd_join_0100()
54 if (result != thrd_success) { in thrd_join_0100()
75 if (result != thrd_success) { in thrd_join_0200()
85 if (result != thrd_success) { in thrd_join_0200()
Dmtx_unlock.c40 if (result != thrd_success) { in mtx_unlock_0100()
46 if (result != thrd_success) { in mtx_unlock_0100()
51 if (result != thrd_success) { in mtx_unlock_0100()
Dthrd_sleep.c39 thrd_exit(thrd_success); in threadfunc()
54 if (result != thrd_success) { in thrd_sleep_0100()
59 if (result != thrd_success) { in thrd_sleep_0100()
/third_party/mesa3d/include/c11/
Dthreads_posix.h106 return (pthread_cond_broadcast(cond) == 0) ? thrd_success : thrd_error; in cnd_broadcast()
122 return (pthread_cond_init(cond, NULL) == 0) ? thrd_success : thrd_error; in cnd_init()
130 return (pthread_cond_signal(cond) == 0) ? thrd_success : thrd_error; in cnd_signal()
146 return (rt == 0) ? thrd_success : thrd_error; in cnd_timedwait()
155 return (pthread_cond_wait(cond, mtx) == 0) ? thrd_success : thrd_error; in cnd_wait()
208 return thrd_success; in mtx_init()
215 return thrd_success; in mtx_init()
223 return (pthread_mutex_lock(mtx) == 0) ? thrd_success : thrd_error; in mtx_lock()
244 return thrd_success; in mtx_timedlock()
249 while (mtx_trylock(mtx) != thrd_success) { in mtx_timedlock()
[all …]
Dthreads_win32.h222 return thrd_success; in cnd_broadcast()
239 return thrd_success; in cnd_init()
248 return thrd_success; in cnd_signal()
261 return thrd_success; in cnd_timedwait()
275 return thrd_success; in cnd_wait()
299 return thrd_success; in mtx_init()
308 return thrd_success; in mtx_lock()
318 while (mtx_trylock(mtx) != thrd_success) { in mtx_timedlock()
324 return thrd_success; in mtx_timedlock()
335 return TryEnterCriticalSection(mtx) ? thrd_success : thrd_busy; in mtx_trylock()
[all …]
/third_party/flutter/glfw/deps/
Dtinycthread.c62 return thrd_success; in mtx_init()
73 return ret == 0 ? thrd_success : thrd_error; in mtx_init()
95 return thrd_success; in mtx_lock()
97 return pthread_mutex_lock(mtx) == 0 ? thrd_success : thrd_error; in mtx_lock()
112 int ret = TryEnterCriticalSection(&mtx->mHandle) ? thrd_success : thrd_busy; in mtx_trylock()
113 if ((!mtx->mRecursive) && (ret == thrd_success) && mtx->mAlreadyLocked) in mtx_trylock()
120 return (pthread_mutex_trylock(mtx) == 0) ? thrd_success : thrd_busy; in mtx_trylock()
129 return thrd_success; in mtx_unlock()
131 return pthread_mutex_unlock(mtx) == 0 ? thrd_success : thrd_error;; in mtx_unlock()
163 return thrd_success; in cnd_init()
[all …]
/third_party/mesa3d/src/util/
Dcnd_monotonic.h54 return thrd_success; in u_cnd_monotonic_init()
61 ret = thrd_success; in u_cnd_monotonic_init()
90 return thrd_success; in u_cnd_monotonic_broadcast()
92 return (pthread_cond_broadcast(&cond->cond) == 0) ? thrd_success : thrd_error; in u_cnd_monotonic_broadcast()
103 return thrd_success; in u_cnd_monotonic_signal()
105 return (pthread_cond_signal(&cond->cond) == 0) ? thrd_success : thrd_error; in u_cnd_monotonic_signal()
121 return thrd_success; in u_cnd_monotonic_timedwait()
127 return (rt == 0) ? thrd_success : thrd_error; in u_cnd_monotonic_timedwait()
139 return thrd_success; in u_cnd_monotonic_wait()
141 return (pthread_cond_wait(&cond->cond, mtx) == 0) ? thrd_success : thrd_error; in u_cnd_monotonic_wait()
/third_party/gettext/gettext-runtime/intl/
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 …]
/third_party/musl/src/thread/
Dmtx_trylock.c7 return (a_cas(&m->_m_lock, 0, EBUSY) & EBUSY) ? thrd_busy : thrd_success; in mtx_trylock()
12 case 0: return thrd_success; in mtx_trylock()
Dcnd_init.c6 return thrd_success; in cnd_init()
Dtss_create.c9 return __pthread_key_create(tss, dtor) ? thrd_error : thrd_success; in tss_create()
Dmtx_init.c9 return thrd_success; in mtx_init()
Dmtx_lock.c7 return thrd_success; in mtx_lock()
/third_party/mesa3d/src/util/tests/sparse_array/
Dmulti_threaded.c61 assert(ret == thrd_success); in run_test()
66 assert(ret == thrd_success); in run_test()

12