/external/valgrind/main/drd/tests/ |
pth_cond_race.c | 18 static pthread_mutex_t s_mutex; variable 43 pthread_mutex_init(&s_mutex, 0); 44 pthread_mutex_lock(&s_mutex); 48 pthread_cond_wait(&s_cond, &s_mutex); 49 pthread_mutex_unlock(&s_mutex); 53 pthread_mutex_destroy(&s_mutex); 62 pthread_mutex_lock(&s_mutex); 63 pthread_mutex_unlock(&s_mutex); 66 if (s_use_mutex) pthread_mutex_lock(&s_mutex); 68 if (s_use_mutex) pthread_mutex_unlock(&s_mutex); [all...] |
fp_race.c | 17 /* s_mutex protects s_d3. */ 18 static pthread_mutex_t s_mutex; variable 55 pthread_mutex_init(&s_mutex, 0); 76 if (s_use_mutex) pthread_mutex_lock(&s_mutex); 78 if (s_use_mutex) pthread_mutex_unlock(&s_mutex); 86 pthread_mutex_destroy(&s_mutex); 99 if (s_use_mutex) pthread_mutex_lock(&s_mutex); 101 if (s_use_mutex) pthread_mutex_unlock(&s_mutex);
|
thread_name.c | 14 static pthread_mutex_t s_mutex; variable 30 pthread_mutex_lock(&s_mutex); 32 pthread_cond_wait(&s_cond, &s_mutex); 37 pthread_mutex_unlock(&s_mutex); 48 pthread_mutex_init(&s_mutex, 0); 58 pthread_mutex_destroy(&s_mutex);
|
pth_cleanup_handler.c | 14 static pthread_mutex_t s_mutex; variable 20 pthread_mutex_unlock(&s_mutex); 25 if (pthread_mutex_lock(&s_mutex) != 0) 44 if (pthread_mutex_init(&s_mutex, NULL) != 0)
|
pth_detached.c | 12 static pthread_mutex_t s_mutex; variable 17 pthread_mutex_lock(&s_mutex); 19 pthread_mutex_unlock(&s_mutex); 25 pthread_mutex_lock(&s_mutex); 27 pthread_mutex_unlock(&s_mutex); 58 pthread_mutex_init(&s_mutex, 0); 92 pthread_mutex_destroy(&s_mutex);
|
pth_broadcast.c | 80 static pthread_mutex_t s_mutex; variable 90 pthread_mutex_lock(&s_mutex); 101 pthread_cond_wait(&s_cond, &s_mutex); 108 pthread_mutex_unlock(&s_mutex); 139 pthread_mutex_init(&s_mutex, 0); 164 pthread_mutex_lock(&s_mutex); 166 pthread_mutex_unlock(&s_mutex); 179 pthread_mutex_destroy(&s_mutex);
|
rwlock_test.c | 21 static pthread_mutex_t s_mutex; variable 22 static long long s_grand_sum; /* protected by s_mutex. */ 45 pthread_mutex_lock(&s_mutex); 47 pthread_mutex_unlock(&s_mutex); 79 pthread_mutex_init(&s_mutex, NULL);
|