Home
last modified time | relevance | path

Searched refs:mtx_trylock (Results 1 - 13 of 13) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/thread/
H A Dmtx_trylock.c27 ret = mtx_trylock(&g_mtex); in threadfuncA()
38 ret = mtx_trylock(&g_mtex); in threadfuncB()
47 * @tc.desc : Verify process mtx_trylock success when mtx_init second args is mtx_plain | tx_recursive.
72 * @tc.desc : Verify process mtx_trylock fail when mtx_init second args is mtx_plain.
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_mutex_test.cpp91 EXPECT_EQ(thrd_success, mtx_trylock(&mtx_)); in HWTEST_F()
92 EXPECT_EQ(thrd_busy, mtx_trylock(&mtx_)); in HWTEST_F()
95 EXPECT_EQ(thrd_busy, mtx_trylock(&mtx_)); in HWTEST_F()
109 EXPECT_EQ(thrd_success, mtx_trylock(&mtx_)); in HWTEST_F()
151 std::thread([&mtxUnlock] { EXPECT_EQ(thrd_busy, mtx_trylock(&mtxUnlock)); }).join(); in HWTEST_F()
/third_party/musl/src/thread/
H A Dmtx_trylock.c4 int mtx_trylock(mtx_t *m) in mtx_trylock() function
/third_party/mesa3d/src/c11/impl/
H A Dthreads_posix.c44 Otherwise use mtx_trylock() + *busy loop* emulation.
223 while (mtx_trylock(mtx) != thrd_success) { in mtx_timedlock()
237 mtx_trylock(mtx_t *mtx) in mtx_trylock() function
H A Dthreads_win32.c48 Otherwise emulate by mtx_trylock() + *busy loop* for WinXP.
78 - Emulated `mtx_timelock()' with mtx_trylock() + *busy loop*
281 while (mtx_trylock(mtx) != thrd_success) { in mtx_timedlock()
292 mtx_trylock(mtx_t *mtx) in mtx_trylock() function
/third_party/mesa3d/src/gallium/auxiliary/os/
H A Dos_thread.h55 int ret = mtx_trylock(mutex); in __pipe_mutex_assert_locked()
/third_party/musl/porting/uniproton/kernel/include/
H A Dthreads.h65 int mtx_trylock(mtx_t *);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dthreads.h65 int mtx_trylock(mtx_t *);
/third_party/musl/include/
H A Dthreads.h65 int mtx_trylock(mtx_t *);
/third_party/mesa3d/src/util/
H A Dsimple_mtx.h175 int ret = mtx_trylock(mtx); in simple_mtx_assert_locked()
/third_party/glfw/deps/
H A Dtinycthread.h235 int mtx_trylock(mtx_t *mtx);
H A Dtinycthread.c109 int mtx_trylock(mtx_t *mtx) in mtx_trylock() function
/third_party/mesa3d/src/c11/
H A Dthreads.h175 int mtx_trylock(mtx_t *__mtx);

Completed in 6 milliseconds