/third_party/musl/libc-test/src/functionalext/supplement/thread/ |
D | mtx_lock.c | 27 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 …]
|
D | cnd_timedwait.c | 27 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 …]
|
D | mtx_trylock.c | 28 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()
|
D | mtx_timedlock.c | 38 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()
|
D | thrd_current.c | 33 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()
|
D | thrd_equal.c | 33 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()
|
D | tss_set.c | 26 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()
|
D | cnd_broadcast.c | 33 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()
|
D | thrd_detach.c | 32 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()
|
D | thrd_create.c | 34 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()
|
D | mtx_init.c | 32 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()
|
D | thrd_join.c | 44 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()
|
D | mtx_unlock.c | 40 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()
|
D | thrd_sleep.c | 39 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/src/c11/impl/ |
D | threads_posix.c | 86 return (pthread_cond_broadcast(cond) == 0) ? thrd_success : thrd_error; in cnd_broadcast() 102 return (pthread_cond_init(cond, NULL) == 0) ? thrd_success : thrd_error; in cnd_init() 110 return (pthread_cond_signal(cond) == 0) ? thrd_success : thrd_error; in cnd_signal() 126 return (rt == 0) ? thrd_success : thrd_error; in cnd_timedwait() 135 return (pthread_cond_wait(cond, mtx) == 0) ? thrd_success : thrd_error; in cnd_wait() 188 return thrd_success; in mtx_init() 195 return thrd_success; in mtx_init() 203 return (pthread_mutex_lock(mtx) == 0) ? thrd_success : thrd_error; in mtx_lock() 218 return thrd_success; in mtx_timedlock() 223 while (mtx_trylock(mtx) != thrd_success) { in mtx_timedlock() [all …]
|
D | threads_win32.c | 189 return thrd_success; in cnd_broadcast() 207 return thrd_success; in cnd_init() 216 return thrd_success; in cnd_signal() 228 return thrd_success; in cnd_timedwait() 239 return thrd_success; in cnd_wait() 263 return thrd_success; in mtx_init() 272 return thrd_success; in mtx_lock() 281 while (mtx_trylock(mtx) != thrd_success) { in mtx_timedlock() 287 return thrd_success; in mtx_timedlock() 295 return TryEnterCriticalSection((PCRITICAL_SECTION)mtx) ? thrd_success : thrd_busy; in mtx_trylock() [all …]
|
/third_party/flutter/glfw/deps/ |
D | tinycthread.c | 62 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/ |
D | cnd_monotonic.h | 54 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/musl/src/thread/ |
D | mtx_trylock.c | 7 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()
|
D | cnd_init.c | 6 return thrd_success; in cnd_init()
|
D | tss_create.c | 9 return __pthread_key_create(tss, dtor) ? thrd_error : thrd_success; in tss_create()
|
D | mtx_init.c | 9 return thrd_success; in mtx_init()
|
D | thrd_join.c | 10 return thrd_success; in thrd_join()
|
D | mtx_lock.c | 7 return thrd_success; in mtx_lock()
|
/third_party/mesa3d/src/util/tests/ |
D | sparse_array_test.cpp | 59 ASSERT_EQ(ret, thrd_success); in TEST() 64 ASSERT_EQ(ret, thrd_success); in TEST()
|