Lines Matching refs:PTHREAD_REQUIRE
113 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL));
115 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
116 PTHREAD_REQUIRE(pthread_create(&new, NULL, mutex1_threadfunc, &x));
122 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
124 PTHREAD_REQUIRE(pthread_join(new, &joinval));
126 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
131 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
163 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
169 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
202 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL));
216 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
220 PTHREAD_REQUIRE(pthread_create(&new, NULL, mutex2_threadfunc, &count2));
229 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
232 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
238 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
241 PTHREAD_REQUIRE(pthread_join(new, &joinval));
243 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
281 PTHREAD_REQUIRE(mutex_lock(&static_mutex, &ts_lengthy));
287 PTHREAD_REQUIRE(pthread_mutex_unlock(&static_mutex));
333 PTHREAD_REQUIRE(mutex_lock(&static_mutex, &ts_lengthy));
334 PTHREAD_REQUIRE(pthread_create(&new, NULL, mutex3_threadfunc, &count2));
343 PTHREAD_REQUIRE(pthread_mutex_unlock(&static_mutex));
346 PTHREAD_REQUIRE(mutex_lock(&static_mutex, &ts_lengthy));
352 PTHREAD_REQUIRE(pthread_mutex_unlock(&static_mutex));
355 PTHREAD_REQUIRE(pthread_join(new, &joinval));
357 PTHREAD_REQUIRE(mutex_lock(&static_mutex, &ts_lengthy));
388 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
392 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
411 PTHREAD_REQUIRE(pthread_mutexattr_init(&mattr));
412 PTHREAD_REQUIRE(pthread_mutexattr_settype(&mattr, PTHREAD_MUTEX_RECURSIVE));
414 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, &mattr));
416 PTHREAD_REQUIRE(pthread_mutexattr_destroy(&mattr));
419 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
420 PTHREAD_REQUIRE(pthread_create(&new, NULL, mutex4_threadfunc, &x));
423 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
427 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
434 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
437 PTHREAD_REQUIRE(pthread_join(new, &joinval));
439 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
444 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
461 PTHREAD_REQUIRE(mutex_lock(&mutex5, &ts_lengthy));
465 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex5));
497 PTHREAD_REQUIRE(pthread_mutexattr_init(&attr5));
498 PTHREAD_REQUIRE(pthread_mutexattr_setprotocol(&attr5,
500 PTHREAD_REQUIRE(pthread_mutexattr_setprioceiling(&attr5,
503 PTHREAD_REQUIRE(pthread_mutex_init(&mutex5, &attr5));
504 PTHREAD_REQUIRE(mutex_lock(&mutex5, &ts_lengthy));
506 PTHREAD_REQUIRE(pthread_create(&child, NULL, child_func, NULL));
510 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex5));
511 PTHREAD_REQUIRE(pthread_join(child, NULL));
526 PTHREAD_REQUIRE(pthread_setschedparam(childid, 1, ¶m));
527 PTHREAD_REQUIRE(pthread_getschedparam(childid, &policy, ¶m));
542 PTHREAD_REQUIRE(mutex_lock(&mutex6, &ts_lengthy));
544 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex6));
558 PTHREAD_REQUIRE(pthread_setschedparam(childid, 1, ¶m));
559 PTHREAD_REQUIRE(pthread_getschedparam(childid, &policy, ¶m));
574 PTHREAD_REQUIRE(mutex_lock(&mutex6, &ts_lengthy));
577 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex6));
620 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL));
630 PTHREAD_REQUIRE(pthread_create(&high, NULL, high_prio, NULL));
631 PTHREAD_REQUIRE(pthread_create(&low, NULL, low_prio, NULL));
633 PTHREAD_REQUIRE(pthread_join(low, NULL));
634 PTHREAD_REQUIRE(pthread_join(high, NULL));
651 PTHREAD_REQUIRE(pthread_mutexattr_init(&mattr));
654 PTHREAD_REQUIRE(pthread_mutexattr_setprotocol(&mattr, target));
655 PTHREAD_REQUIRE(pthread_mutexattr_getprotocol(&mattr, &protocol));
660 PTHREAD_REQUIRE(pthread_mutexattr_setprotocol(&mattr, target));
661 PTHREAD_REQUIRE(pthread_mutexattr_getprotocol(&mattr, &protocol));
666 PTHREAD_REQUIRE(pthread_mutexattr_setprotocol(&mattr, target));
667 PTHREAD_REQUIRE(pthread_mutexattr_getprotocol(&mattr, &protocol));
687 PTHREAD_REQUIRE(pthread_mutexattr_init(&mattr));
694 PTHREAD_REQUIRE(pthread_mutexattr_getprotocol(&mattr,
698 PTHREAD_REQUIRE(pthread_mutexattr_setprioceiling(&mattr, i));
699 PTHREAD_REQUIRE(pthread_mutexattr_getprioceiling(&mattr,
718 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL));
721 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex));
728 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
743 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL));
746 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
753 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
779 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL));
782 PTHREAD_REQUIRE(pthread_mutex_lock(&mutex));
785 PTHREAD_REQUIRE(pthread_create(&new, NULL, timedmtx_thrdfunc, NULL));
788 PTHREAD_REQUIRE(pthread_join(new, NULL));
791 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));
807 PTHREAD_REQUIRE(pthread_mutex_init(&mutex, NULL));
810 PTHREAD_REQUIRE(mutex_lock(&mutex, &ts_lengthy));
813 PTHREAD_REQUIRE(pthread_create(&new, NULL, timedmtx_thrdfunc, NULL));
816 PTHREAD_REQUIRE(pthread_join(new, NULL));
819 PTHREAD_REQUIRE(pthread_mutex_unlock(&mutex));