Lines Matching refs:mtx
37 pthread_mutex_t mtx;
42 TEST(r, pthread_mutex_init(&mtx, 0), "");
44 TEST(r, pthread_mutex_lock(&mtx), "");
45 TEST(r, pthread_create(&td, 0, start_signal, (void *[]){ &cond, &mtx }), "");
46 TEST(r, pthread_cond_wait(&cond, &mtx), "");
48 TEST(r, pthread_mutex_unlock(&mtx), "");
49 TEST(r, pthread_mutex_destroy(&mtx), "");
53 TEST(r, pthread_mutex_init(&mtx, 0), "");
55 TEST(r, pthread_mutex_lock(&mtx), "");
57 TEST(r, pthread_create(&td1, 0, start_wait, (void *[]){ &cond, &mtx, foo }), "");
58 TEST(r, pthread_create(&td2, 0, start_wait, (void *[]){ &cond, &mtx, foo }), "");
59 TEST(r, pthread_create(&td3, 0, start_wait, (void *[]){ &cond, &mtx, foo }), "");
60 TEST(r, pthread_mutex_unlock(&mtx), "");
63 TEST(r, pthread_mutex_lock(&mtx), "");
65 TEST(r, pthread_mutex_unlock(&mtx), "");
66 TEST(r, pthread_mutex_lock(&mtx), "");
68 TEST(r, pthread_mutex_unlock(&mtx), "");
69 TEST(r, pthread_mutex_lock(&mtx), "");
71 TEST(r, pthread_mutex_unlock(&mtx), "");
75 TEST(r, pthread_mutex_destroy(&mtx), "");
79 TEST(r, pthread_mutex_init(&mtx, 0), "");
81 TEST(r, pthread_mutex_lock(&mtx), "");
83 TEST(r, pthread_create(&td1, 0, start_wait, (void *[]){ &cond, &mtx, foo }), "");
84 TEST(r, pthread_create(&td2, 0, start_wait, (void *[]){ &cond, &mtx, foo }), "");
85 TEST(r, pthread_create(&td3, 0, start_wait, (void *[]){ &cond, &mtx, foo }), "");
86 TEST(r, pthread_mutex_unlock(&mtx), "");
88 TEST(r, pthread_mutex_lock(&mtx), "");
90 TEST(r, pthread_mutex_unlock(&mtx), "");
95 TEST(r, pthread_mutex_destroy(&mtx), "");