Searched refs:s_mutex (Results 1 – 8 of 8) sorted by relevance
/external/valgrind/drd/tests/ |
D | pth_cond_destroy_busy.c | 11 static pthread_mutex_t s_mutex; variable 27 pthread_mutex_lock(&s_mutex); in thread_func() 31 pthread_cond_wait(&s_cond, &s_mutex); in thread_func() 32 pthread_mutex_unlock(&s_mutex); in thread_func() 42 pthread_mutex_init(&s_mutex, 0); in main() 47 pthread_mutex_lock(&s_mutex); in main() 49 pthread_cond_wait(&s_cond, &s_mutex); in main() 50 pthread_mutex_unlock(&s_mutex); in main() 56 pthread_mutex_lock(&s_mutex); in main() 59 pthread_mutex_unlock(&s_mutex); in main() [all …]
|
D | pth_cond_race.c | 18 static pthread_mutex_t s_mutex; variable 43 pthread_mutex_init(&s_mutex, 0); in main() 44 pthread_mutex_lock(&s_mutex); in main() 48 pthread_cond_wait(&s_cond, &s_mutex); in main() 49 pthread_mutex_unlock(&s_mutex); in main() 53 pthread_mutex_destroy(&s_mutex); in main() 62 pthread_mutex_lock(&s_mutex); in thread_func() 63 pthread_mutex_unlock(&s_mutex); in thread_func() 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()
|
D | fp_race.c | 18 static pthread_mutex_t s_mutex; variable 55 pthread_mutex_init(&s_mutex, 0); 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() 86 pthread_mutex_destroy(&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()
|
D | pth_detached.c | 11 static pthread_mutex_t s_mutex; variable 16 pthread_mutex_lock(&s_mutex); in increment_finished_count() 19 pthread_mutex_unlock(&s_mutex); in increment_finished_count() 45 pthread_mutex_init(&s_mutex, 0); in main() 72 pthread_mutex_lock(&s_mutex); in main() 74 const int ret = pthread_cond_wait(&s_cond, &s_mutex); in main() 77 pthread_mutex_unlock(&s_mutex); in main() 80 pthread_mutex_destroy(&s_mutex); in main()
|
D | thread_name.c | 15 static pthread_mutex_t s_mutex; variable 33 pthread_mutex_lock(&s_mutex); in thread_func() 35 pthread_cond_wait(&s_cond, &s_mutex); in thread_func() 40 pthread_mutex_unlock(&s_mutex); in thread_func() 52 pthread_mutex_init(&s_mutex, 0); in main() 62 pthread_mutex_destroy(&s_mutex); in main()
|
D | pth_broadcast.c | 80 static pthread_mutex_t s_mutex; variable 90 pthread_mutex_lock(&s_mutex); in thread_func() 101 pthread_cond_wait(&s_cond, &s_mutex); in thread_func() 108 pthread_mutex_unlock(&s_mutex); in thread_func() 139 pthread_mutex_init(&s_mutex, 0); in main() 164 pthread_mutex_lock(&s_mutex); in main() 166 pthread_mutex_unlock(&s_mutex); in main() 179 pthread_mutex_destroy(&s_mutex); in main()
|
D | pth_cleanup_handler.c | 14 static pthread_mutex_t s_mutex; variable 20 pthread_mutex_unlock(&s_mutex); in cleanup_handler() 25 if (pthread_mutex_lock(&s_mutex) != 0) in f() 44 if (pthread_mutex_init(&s_mutex, NULL) != 0) in main()
|
D | rwlock_test.c | 21 static pthread_mutex_t s_mutex; variable 45 pthread_mutex_lock(&s_mutex); in thread_func() 47 pthread_mutex_unlock(&s_mutex); in thread_func() 79 pthread_mutex_init(&s_mutex, NULL); in main()
|