Home
last modified time | relevance | path

Searched refs:g_mutex (Results 1 – 7 of 7) sorted by relevance

/third_party/musl/libc-test/src/functionalext/supplement/thread/
Dpthread_mutex_lock.c22 static pthread_mutex_t g_mutex; variable
28 int32_t ret = pthread_mutex_lock(&g_mutex); in threadfuncA()
30 pthread_mutex_unlock(&g_mutex); in threadfuncA()
36 int32_t ret = pthread_mutex_lock(&g_mutex); in threadfuncB()
37 ret = pthread_mutex_lock(&g_mutex); in threadfuncB()
39 pthread_mutex_unlock(&g_mutex); in threadfuncB()
46 int32_t ret = pthread_mutex_lock(&g_mutex); in threadfuncC()
50 pthread_mutex_unlock(&g_mutex); in threadfuncC()
56 int32_t ret = pthread_mutex_lock(&g_mutex); in threadfuncD()
57 ret = pthread_mutex_lock(&g_mutex); in threadfuncD()
[all …]
Dpthread_mutex_trylock.c20 static pthread_mutex_t g_mutex; variable
29 pthread_mutex_init(&g_mutex, NULL); in pthread_mutex_trylock_0100()
30 int ret = pthread_mutex_trylock(&g_mutex); in pthread_mutex_trylock_0100()
32 pthread_mutex_unlock(&g_mutex); in pthread_mutex_trylock_0100()
42 pthread_mutex_init(&g_mutex, NULL); in pthread_mutex_trylock_0200()
43 pthread_mutex_lock(&g_mutex); in pthread_mutex_trylock_0200()
44 int ret = pthread_mutex_trylock(&g_mutex); in pthread_mutex_trylock_0200()
46 pthread_mutex_unlock(&g_mutex); in pthread_mutex_trylock_0200()
Dpthread_mutex_unlock.c21 static pthread_mutex_t g_mutex; variable
25 int32_t ret = pthread_mutex_lock(&g_mutex); in threadfuncA()
26 ret = pthread_mutex_unlock(&g_mutex); in threadfuncA()
33 pthread_mutex_lock(&g_mutex); in threadfuncB()
39 int32_t ret = pthread_mutex_unlock(&g_mutex); in threadfuncC()
52 pthread_mutex_init(&g_mutex, (pthread_mutexattr_t *)(&type)); in pthread_mutex_un_lock_0100()
67 pthread_mutex_init(&g_mutex, (pthread_mutexattr_t *)(&type)); in pthread_mutex_un_lock_0200()
73 pthread_mutex_destroy(&g_mutex); in pthread_mutex_un_lock_0200()
Dpthread_mutex_init.c21 static pthread_mutex_t g_mutex; variable
30 int32_t ret = pthread_mutex_init(&g_mutex, NULL); in pthread_mutex_init_0100()
42 int32_t ret = pthread_mutex_init(&g_mutex, (pthread_mutexattr_t *)(&type)); in pthread_mutex_init_0200()
54 int32_t ret = pthread_mutex_init(&g_mutex, (pthread_mutexattr_t *)(&type)); in pthread_mutex_init_0300()
/third_party/lwip/src/core/distributed_net/
Ddistributed_net.c37 static sys_mutex_t g_mutex = {0}; variable
69 sys_mutex_lock(&g_mutex); in set_distributed_net_socket()
71 sys_mutex_unlock(&g_mutex); in set_distributed_net_socket()
79 sys_mutex_lock(&g_mutex); in reset_distributed_net_socket()
81 sys_mutex_unlock(&g_mutex); in reset_distributed_net_socket()
87 sys_mutex_lock(&g_mutex); in get_local_tcp_server_port()
89 sys_mutex_unlock(&g_mutex); in get_local_tcp_server_port()
95 sys_mutex_lock(&g_mutex); in get_local_udp_server_port()
97 sys_mutex_unlock(&g_mutex); in get_local_udp_server_port()
103 sys_mutex_lock(&g_mutex); in is_distributed_net_enabled()
[all …]
/third_party/mesa3d/src/gallium/frontends/wgl/
Dstw_tls.c42 static CRITICAL_SECTION g_mutex = { variable
92 EnterCriticalSection(&g_mutex); in stw_tls_init()
95 LeaveCriticalSection(&g_mutex); in stw_tls_init()
220 EnterCriticalSection(&g_mutex); in stw_tls_cleanup()
226 LeaveCriticalSection(&g_mutex); in stw_tls_cleanup()
244 EnterCriticalSection(&g_mutex); in stw_tls_lookup_pending_data()
258 LeaveCriticalSection(&g_mutex); in stw_tls_lookup_pending_data()
/third_party/flutter/engine/flutter/shell/platform/fuchsia/flutter/
Dvsync_recorder.cc13 std::mutex g_mutex; variable
29 std::unique_lock<std::mutex> lock(g_mutex); in GetCurrentVsyncInfo()
42 std::unique_lock<std::mutex> lock(g_mutex); in UpdateVsyncInfo()