Home
last modified time | relevance | path

Searched refs:g_mtex (Results 1 – 2 of 2) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/thread/
Dmtx_lock.c21 static mtx_t g_mtex; variable
26 ret = mtx_lock(&g_mtex); in threadfuncA()
28 ret = mtx_unlock(&g_mtex); in threadfuncA()
36 ret = mtx_lock(&g_mtex); in threadfuncB()
38 ret = mtx_unlock(&g_mtex); in threadfuncB()
46 ret = mtx_lock(&g_mtex); in threadfuncC()
48 ret = mtx_unlock(&g_mtex); in threadfuncC()
56 ret = mtx_lock(&g_mtex); in threadfuncD()
58 ret = mtx_unlock(&g_mtex); in threadfuncD()
66 ret = mtx_lock(&g_mtex); in threadfuncE()
[all …]
Dmtx_trylock.c21 static mtx_t g_mtex; variable
26 ret = mtx_lock(&g_mtex); in threadfuncA()
27 ret = mtx_trylock(&g_mtex); in threadfuncA()
29 ret = mtx_unlock(&g_mtex); in threadfuncA()
37 ret = mtx_lock(&g_mtex); in threadfuncB()
38 ret = mtx_trylock(&g_mtex); in threadfuncB()
40 ret = mtx_unlock(&g_mtex); in threadfuncB()
52 int result = mtx_init(&g_mtex, mtx_plain | mtx_recursive); in mtx_trylock_0100()
77 int result = mtx_init(&g_mtex, mtx_plain); in mtx_trylock_0200()