Home
last modified time | relevance | path

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

/third_party/musl/libc-test/src/functionalext/supplement/thread/
H A Dpthread_mutex_lock.c22 static pthread_mutex_t g_mutex; variable
26 int32_t ret = pthread_mutex_lock(&g_mutex); in threadfuncA()
28 pthread_mutex_unlock(&g_mutex); in threadfuncA()
34 int32_t ret = pthread_mutex_lock(&g_mutex); in threadfuncB()
35 ret = pthread_mutex_lock(&g_mutex); in threadfuncB()
37 pthread_mutex_unlock(&g_mutex); in threadfuncB()
43 int32_t ret = pthread_mutex_lock(&g_mutex); in threadfuncC()
45 ret = pthread_mutex_lock(&g_mutex); in threadfuncC()
48 pthread_mutex_unlock(&g_mutex); in threadfuncC()
49 pthread_mutex_unlock(&g_mutex); in threadfuncC()
[all...]
H A 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()
H A 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()
H A 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()
H A Dthrd_current.c36 pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable
76 int result = TrylockWithTimeout(&g_mutex); in threadfuncB()
79 pthread_mutex_unlock(&g_mutex); in threadfuncB()
H A Dthrd_equal.c36 pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable
78 int result = TrylockWithTimeout(&g_mutex); in threadfuncB()
81 pthread_mutex_unlock(&g_mutex); in threadfuncB()
/third_party/lwip/src/core/distributed_net/
H A Ddistributed_net.c42 static sys_mutex_t g_mutex = {0}; variable
74 sys_mutex_lock(&g_mutex); in set_distributed_net_socket()
76 sys_mutex_unlock(&g_mutex); in set_distributed_net_socket()
84 sys_mutex_lock(&g_mutex); in reset_distributed_net_socket()
86 sys_mutex_unlock(&g_mutex); in reset_distributed_net_socket()
92 sys_mutex_lock(&g_mutex); in get_local_tcp_server_port()
94 sys_mutex_unlock(&g_mutex); in get_local_tcp_server_port()
100 sys_mutex_lock(&g_mutex); in get_local_udp_server_port()
102 sys_mutex_unlock(&g_mutex); in get_local_udp_server_port()
108 sys_mutex_lock(&g_mutex); in is_distributed_net_enabled()
[all...]
/third_party/mesa3d/src/gallium/frontends/wgl/
H A 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/libuv/src/dfx/async_stack/
H A Dlibuv_async_stack.c33 static pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable
70 pthread_mutex_lock(&g_mutex); in LibuvAsyncStackInit()
74 pthread_mutex_unlock(&g_mutex); in LibuvAsyncStackInit()
/third_party/node/deps/v8/src/execution/
H A Dfutex-emulation.cc103 // `g_mutex` protects the composition of `g_wait_list` (i.e. no elements may be
108 base::LazyMutex g_mutex = LAZY_MUTEX_INITIALIZER; member
133 NoGarbageCollectionMutexGuard lock_guard(g_mutex.Pointer()); in NotifyWake()
171 g_mutex.Pointer()->AssertHeld(); in NotifyAsyncWaiter()
250 NoGarbageCollectionMutexGuard lock_guard(g_mutex.Pointer()); in Wake()
384 NoGarbageCollectionMutexGuard lock_guard(g_mutex.Pointer()); in WaitSync()
485 node->cond_.WaitFor(g_mutex.Pointer(), time_until_timeout); in WaitSync()
488 node->cond_.Wait(g_mutex.Pointer()); in WaitSync()
547 NoGarbageCollectionMutexGuard lock_guard(g_mutex.Pointer()); in WaitAsync()
662 NoGarbageCollectionMutexGuard lock_guard(g_mutex in Wake()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/misc/
H A Dnftw.c33 pthread_mutex_t g_mutex = PTHREAD_MUTEX_INITIALIZER; variable
239 pthread_mutex_lock(&g_mutex); in main()
245 pthread_mutex_unlock(&g_mutex); in main()
/third_party/libunwind/libunwind/src/aarch64/
H A DGinit.c93 pthread_mutex_t g_mutex; variable
138 pthread_mutex_lock(&g_mutex); in write_validate()
159 pthread_mutex_unlock(&g_mutex); in write_validate()
/third_party/libunwind/libunwind/src/arm/
H A DGinit.c83 pthread_mutex_t g_mutex; variable
128 pthread_mutex_lock(&g_mutex); in write_validate()
149 pthread_mutex_unlock(&g_mutex); in write_validate()

Completed in 5 milliseconds