Home
last modified time | relevance | path

Searched refs:g_mtx (Results 1 – 5 of 5) sorted by relevance

/third_party/quickjs/
Dmessage_server.cpp39 static std::mutex g_mtx; variable
55 g_mtx.lock(); in QueueFront()
57 g_mtx.unlock(); in QueueFront()
63 g_mtx.lock(); in QueuePop()
65 g_mtx.unlock(); in QueuePop()
70 g_mtx.lock(); in QueueIsEmpty()
72 g_mtx.unlock(); in QueueIsEmpty()
132 g_mtx.lock(); in ReadMsg()
137 g_mtx.unlock(); in ReadMsg()
220 g_mtx.lock(); in DBG_StartAgent()
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/thread/
Dmtx_init.c21 static mtx_t g_mtx; variable
31 ret = mtx_init(&g_mtx, mtx_plain); in mtx_init_0100()
43 ret = mtx_init(&g_mtx, mtx_timed); in mtx_init_0200()
55 ret = mtx_init(&g_mtx, mtx_plain | mtx_recursive); in mtx_init_0300()
67 ret = mtx_init(&g_mtx, mtx_timed | mtx_recursive); in mtx_init_0400()
Dmtx_unlock.c21 static mtx_t g_mtx; variable
25 int ret= mtx_lock(&g_mtx); in threadfuncA()
27 ret = mtx_unlock(&g_mtx); in threadfuncA()
39 int result = mtx_init(&g_mtx, mtx_plain); in mtx_unlock_0100()
/third_party/mindspore/mindspore/lite/src/runtime/gpu/cuda/
Dcuda_runtime.cc24 static std::mutex g_mtx; variable
31 std::unique_lock<std::mutex> lck(g_mtx); in GetInstance()
42 std::unique_lock<std::mutex> lck(g_mtx); in DeleteInstance()
/third_party/mindspore/mindspore/lite/src/runtime/gpu/opencl/
Dopencl_runtime.cc34 static std::mutex g_mtx; variable
42 std::unique_lock<std::mutex> lck(g_mtx); in GetInstance()
53 std::unique_lock<std::mutex> lck(g_mtx); in DeleteInstance()