Lines Matching refs:status

30     int status;
33 status = pthread_mutex_lock(&mtx);
34 test_assert(status == 0);
36 status = pthread_mutex_unlock(&mtx);
37 test_assert(status == 0);
47 int status;
50 status = pthread_cond_wait(&cnd, NULL);
51 test_assert(status == 0);
52 status = pthread_cond_signal(&cnd);
53 test_assert(status == 0);
63 int status;
71 status = pthread_create(&thr, NULL, thread_simple, NULL);
72 test_assert(status == 0);
73 status = pthread_join(thr, &result);
74 test_assert(status == 0);
80 status = pthread_create(&thr, NULL, thread_simple, (void *)1);
81 test_assert(status == 0);
82 status = pthread_join(thr, &result);
83 test_assert(status == 0);
89 status = pthread_mutex_init(&mtx, NULL);
90 test_assert(status == 0);
91 status = pthread_mutex_lock(&mtx);
92 test_assert(status == 0);
93 status = pthread_mutex_unlock(&mtx);
94 test_assert(status == 0);
95 status = pthread_mutex_destroy(&mtx);
96 test_assert(status == 0);
102 status = pthread_create(&thr, NULL, thread_lock, (void *)1);
103 test_assert(status == 0);
105 status = pthread_mutex_lock(&mtx);
106 test_assert(status == 0);
109 test_assert(status == 0);
111 status = pthread_join(thr, &result);
112 test_assert(status == 0);
113 status = pthread_mutex_destroy(&mtx);
114 test_assert(status == 0);
119 status = pthread_cond_init(&cnd, NULL);
120 test_assert(status == 0);
121 status = pthread_cond_signal(&cnd);
122 test_assert(status == 0);
123 status = pthread_cond_wait(&cnd, NULL);
124 test_assert(status == 0);
125 status = pthread_cond_destroy(&cnd);
126 test_assert(status == 0);
130 status = pthread_cond_init(&cnd, NULL);
131 test_assert(status == 0);
133 status = pthread_cond_signal(&cnd);
134 test_assert(status == 0);
135 status = pthread_cond_wait(&cnd, NULL);
136 test_assert(status == 0);
138 status = pthread_cond_destroy(&cnd);
139 test_assert(status == 0);