Lines Matching refs:thrd_success

85   ASSERT_EQ(thrd_success, mtx_init(&m, mtx_plain));  in TEST()
88 ASSERT_EQ(thrd_success, cnd_init(&c)); in TEST()
93 ASSERT_EQ(thrd_success, mtx_lock(&m)); in TEST()
94 while (i != 1) ASSERT_EQ(thrd_success, cnd_wait(&c, &m)); in TEST()
95 ASSERT_EQ(thrd_success, mtx_unlock(&m)); in TEST()
101 ASSERT_EQ(thrd_success, mtx_lock(&m)); in TEST()
103 ASSERT_EQ(thrd_success, mtx_unlock(&m)); in TEST()
105 ASSERT_EQ(thrd_success, cnd_broadcast(&c)); in TEST()
121 ASSERT_EQ(thrd_success, cnd_init(&c)); in TEST()
131 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_plain)); in TEST()
133 ASSERT_EQ(thrd_success, cnd_init(&c)); in TEST()
137 ASSERT_EQ(thrd_success, mtx_lock(&m)); in TEST()
138 ASSERT_EQ(thrd_success, cnd_wait(&c, &m)); in TEST()
139 ASSERT_EQ(thrd_success, mtx_unlock(&m)); in TEST()
149 ASSERT_EQ(thrd_success, cnd_signal(&c)); in TEST()
155 ASSERT_EQ(thrd_success, cnd_signal(&c)); in TEST()
161 ASSERT_EQ(thrd_success, cnd_signal(&c)); in TEST()
181 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_timed)); in TEST()
182 ASSERT_EQ(thrd_success, mtx_lock(&m)); in TEST()
185 ASSERT_EQ(thrd_success, cnd_init(&c)); in TEST()
197 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_timed)); in TEST()
200 ASSERT_EQ(thrd_success, cnd_init(&c)); in TEST()
204 ASSERT_EQ(thrd_success, mtx_lock(&m)); in TEST()
211 ASSERT_EQ(thrd_success, cnd_timedwait(&c, &m, &ts)); in TEST()
213 ASSERT_EQ(thrd_success, mtx_unlock(&m)); in TEST()
216 while (!done) ASSERT_EQ(thrd_success, cnd_signal(&c)); in TEST()
227 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_plain)); in TEST()
228 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_timed)); in TEST()
229 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_plain | mtx_recursive)); in TEST()
230 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_timed | mtx_recursive)); in TEST()
241 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_plain)); in TEST()
251 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_plain)); in TEST()
253 ASSERT_EQ(thrd_success, mtx_lock(&m)); in TEST()
255 ASSERT_EQ(thrd_success, mtx_unlock(&m)); in TEST()
266 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_plain | mtx_recursive)); in TEST()
268 ASSERT_EQ(thrd_success, mtx_lock(&m)); in TEST()
269 ASSERT_EQ(thrd_success, mtx_trylock(&m)); in TEST()
270 ASSERT_EQ(thrd_success, mtx_unlock(&m)); in TEST()
271 ASSERT_EQ(thrd_success, mtx_unlock(&m)); in TEST()
282 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_timed)); in TEST()
285 ASSERT_EQ(thrd_success, mtx_timedlock(&m, &ts)); in TEST()
292 ASSERT_EQ(thrd_success, mtx_unlock(&m)); in TEST()
303 ASSERT_EQ(thrd_success, mtx_init(&m, mtx_plain)); in TEST()
304 ASSERT_EQ(thrd_success, mtx_lock(&m)); in TEST()
308 ASSERT_EQ(thrd_success, mtx_unlock(&m)); in TEST()
310 ASSERT_EQ(thrd_success, mtx_trylock(&m)); in TEST()
337 ASSERT_EQ(thrd_success, thrd_create(&t, exit_arg, reinterpret_cast<void*>(1))); in TEST()
338 ASSERT_EQ(thrd_success, thrd_detach(t)); in TEST()
350 ASSERT_EQ(thrd_success, thrd_create(&t, exit_arg, reinterpret_cast<void*>(1))); in TEST()
351 ASSERT_EQ(thrd_success, thrd_join(t, &result)); in TEST()
354 ASSERT_EQ(thrd_success, thrd_create(&t, exit_arg, reinterpret_cast<void*>(2))); in TEST()
355 ASSERT_EQ(thrd_success, thrd_join(t, &result)); in TEST()
359 ASSERT_EQ(thrd_success, thrd_create(&t, exit_arg, reinterpret_cast<void*>(3))); in TEST()
360 ASSERT_EQ(thrd_success, thrd_join(t, nullptr)); in TEST()
385 ASSERT_EQ(thrd_success, thrd_create(&t, return_arg, reinterpret_cast<void*>(1))); in TEST()
386 ASSERT_EQ(thrd_success, thrd_join(t, &result)); in TEST()
389 ASSERT_EQ(thrd_success, thrd_create(&t, return_arg, reinterpret_cast<void*>(2))); in TEST()
390 ASSERT_EQ(thrd_success, thrd_join(t, &result)); in TEST()
394 ASSERT_EQ(thrd_success, thrd_create(&t, return_arg, reinterpret_cast<void*>(3))); in TEST()
395 ASSERT_EQ(thrd_success, thrd_join(t, nullptr)); in TEST()
462 ASSERT_EQ(thrd_success, tss_create(&key, nullptr)); in TEST()
473 ASSERT_EQ(thrd_success, tss_create(&key, dtor)); in TEST()
475 ASSERT_EQ(thrd_success, tss_set(key, strdup("hello"))); in TEST()
477 ASSERT_EQ(thrd_success, tss_set(key, strdup("world"))); in TEST()
485 ASSERT_EQ(thrd_success, tss_set(key, strdup("hello"))); in TEST()
502 ASSERT_EQ(thrd_success, tss_create(&key, nullptr)); in TEST()
504 ASSERT_EQ(thrd_success, tss_set(key, const_cast<char*>("hello"))); in TEST()
508 ASSERT_EQ(thrd_success, tss_set(key, const_cast<char*>("world"))); in TEST()