Searched refs:g_mutex (Results 1 – 7 of 7) sorted by relevance
22 static pthread_mutex_t g_mutex; variable28 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 …]
20 static pthread_mutex_t g_mutex; variable29 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()
21 static pthread_mutex_t g_mutex; variable25 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()
21 static pthread_mutex_t g_mutex; variable30 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()
37 static sys_mutex_t g_mutex = {0}; variable69 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 …]
42 static CRITICAL_SECTION g_mutex = { variable92 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()
13 std::mutex g_mutex; variable29 std::unique_lock<std::mutex> lock(g_mutex); in GetCurrentVsyncInfo()42 std::unique_lock<std::mutex> lock(g_mutex); in UpdateVsyncInfo()