/external/ltp/testcases/realtime/perf/latency/ |
pthread_cond_latency.c | 46 pthread_mutex_t child_mutex = PTHREAD_MUTEX_INITIALIZER; variable 93 pthread_mutex_lock(&child_mutex); 95 if (pthread_cond_wait(cp, &child_mutex) != 0) { 101 pthread_mutex_unlock(&child_mutex); 147 pthread_mutex_lock(&child_mutex); 150 pthread_mutex_unlock(&child_mutex); 152 pthread_mutex_lock(&child_mutex); 154 pthread_mutex_unlock(&child_mutex); 169 pthread_mutex_lock(&child_mutex); 173 pthread_mutex_unlock(&child_mutex); [all...] |
pthread_cond_many.c | 50 pthread_mutex_t child_mutex; variable 86 pthread_mutex_lock(&child_mutex); 88 if (pthread_cond_wait(cp, &child_mutex) != 0) { 94 pthread_mutex_unlock(&child_mutex); 154 pthread_mutex_lock(&child_mutex); 156 pthread_mutex_unlock(&child_mutex); 158 pthread_mutex_lock(&child_mutex); 160 pthread_mutex_unlock(&child_mutex); 175 pthread_mutex_lock(&child_mutex); 179 pthread_mutex_unlock(&child_mutex); [all...] |
/external/ltp/testcases/kernel/sched/pthreads/ |
pth_str01.h | 29 pthread_mutex_t child_mutex; /* mutex for the child_count */ member in struct:child_info
|
pth_str01.c | 208 printf("thread %d locking child_mutex %p\n", my_index, 209 &parent->child_mutex); 212 pthread_mutex_lock(&parent->child_mutex); 220 printf("thread %d unlocking child_mutex %p\n", my_index, 221 &parent->child_mutex); 224 pthread_mutex_unlock(&parent->child_mutex); 252 printf("thread %d sending child_mutex broadcast\n", 607 if ((rc = pthread_mutex_init(&child_info[ind].child_mutex, 609 tst_resm(TINFO, "pthread_mutex_init child_mutex: %s\n",
|
pth_str03.c | 53 pthread_mutex_t child_mutex; /* mutex for the child_count */ member in struct:kid_info 221 printf("thread %d locking child_mutex %p\n", my_index, 222 &parent->child_mutex); 225 pthread_mutex_lock(&parent->child_mutex); 233 printf("thread %d unlocking child_mutex %p\n", my_index, 234 &parent->child_mutex); 237 pthread_mutex_unlock(&parent->child_mutex); 261 printf("thread %d sending child_mutex broadcast\n", 583 pthread_mutex_init(&child_info[ind].child_mutex, NULL))) { 584 tst_resm(TINFO, "pthread_mutex_init child_mutex: %s" [all...] |
/external/ltp/testcases/realtime/func/pi-tests/ |
testpi-5.c | 43 pthread_mutex_t child_mutex; variable 49 ret = pthread_mutex_lock(&child_mutex); 51 printf("child thread: Failed to lock child_mutex: %d\n", ret); 58 ret = pthread_mutex_lock(&child_mutex); 60 printf("child thread: Failed to lock child_mutex: %d\n", ret); 86 retc = pthread_mutex_init(&child_mutex, &mutexattr);
|
testpi-6.c | 45 pthread_mutex_t child_mutex; variable 51 ret = pthread_mutex_lock(&child_mutex); 53 printf("child thread: Failed to lock child_mutex: %d\n", ret); 60 ret = pthread_mutex_lock(&child_mutex); 62 printf("child thread: Failed to lock child_mutex: %d\n", ret); 86 retc = pthread_mutex_init(&child_mutex, &mutexattr);
|