Searched refs:s_use_mutex (Results 1 – 2 of 2) sorted by relevance
27 static int s_use_mutex = 0; variable45 s_use_mutex = 1; in main()76 if (s_use_mutex) pthread_mutex_lock(&s_mutex); in main()78 if (s_use_mutex) pthread_mutex_unlock(&s_mutex); in main()99 if (s_use_mutex) pthread_mutex_lock(&s_mutex); in thread_func()101 if (s_use_mutex) pthread_mutex_unlock(&s_mutex); in thread_func()
20 static int s_use_mutex = 0; variable35 s_use_mutex = 1; in main()66 if (s_use_mutex) pthread_mutex_lock(&s_mutex); in thread_func()68 if (s_use_mutex) pthread_mutex_unlock(&s_mutex); in thread_func()