HomeSort by relevance Sort by last modified time
    Searched refs:s_mutex (Results 1 - 8 of 8) sorted by null

  /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_detached.c 10 static int s_finished_count; /* protected by s_mutex */
11 static pthread_mutex_t s_mutex; variable
16 pthread_mutex_lock(&s_mutex);
19 pthread_mutex_unlock(&s_mutex);
45 pthread_mutex_init(&s_mutex, 0);
72 pthread_mutex_lock(&s_mutex);
74 const int ret = pthread_cond_wait(&s_cond, &s_mutex);
77 pthread_mutex_unlock(&s_mutex);
80 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_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);
  /system/core/libutils/
LinearAllocator.cpp 62 static android::Mutex s_mutex; variable
73 android::AutoMutex lock(s_mutex);

Completed in 319 milliseconds