Searched refs:SAFE_PFUNC (Results 1 – 7 of 7) sorted by relevance
/external/ltp/testcases/open_posix_testsuite/functional/threads/schedule/ |
D | 1-2.c | 59 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in hi_prio_thread() 69 SAFE_PFUNC(pthread_mutex_lock(&mutex)); in hi_prio_thread() 77 SAFE_PFUNC(pthread_mutex_unlock(&mutex)); in hi_prio_thread() 90 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in low_prio_thread() 118 SAFE_PFUNC(pthread_setschedparam(pthread_self(), SCHED_RR, ¶m)); in main() 119 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in main() 129 SAFE_PFUNC(pthread_mutex_lock(&mutex)); in main() 132 SAFE_PFUNC(pthread_attr_init(&high_attr)); in main() 133 SAFE_PFUNC(pthread_attr_setinheritsched(&high_attr, PTHREAD_EXPLICIT_SCHED)); in main() 134 SAFE_PFUNC(pthread_attr_setschedpolicy(&high_attr, SCHED_RR)); in main() [all …]
|
D | 1-1.c | 68 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in hi_prio_thread() 74 SAFE_PFUNC(my_pthread_barrier_wait(&barrier)); in hi_prio_thread() 94 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in low_prio_thread() 117 SAFE_PFUNC(pthread_barrier_init(&barrier, NULL, 2)); in main() 120 SAFE_PFUNC(pthread_attr_init(&high_attr)); in main() 121 SAFE_PFUNC(pthread_attr_setinheritsched(&high_attr, PTHREAD_EXPLICIT_SCHED)); in main() 122 SAFE_PFUNC(pthread_attr_setschedpolicy(&high_attr, SCHED_RR)); in main() 124 SAFE_PFUNC(pthread_attr_setschedparam(&high_attr, ¶m)); in main() 125 SAFE_PFUNC(pthread_create(&high_id, &high_attr, hi_prio_thread, NULL)); in main() 129 SAFE_PFUNC(pthread_setschedparam(pthread_self(), SCHED_RR, ¶m)); in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/functional/threads/condvar/ |
D | pthread_cond_wait_1.c | 61 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in hi_prio_thread() 67 SAFE_PFUNC(pthread_mutex_lock(&mutex)); in hi_prio_thread() 70 SAFE_PFUNC(pthread_cond_wait(&cond, &mutex)); in hi_prio_thread() 78 SAFE_PFUNC(pthread_mutex_unlock(&mutex)); in hi_prio_thread() 91 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in low_prio_thread() 114 SAFE_PFUNC(pthread_attr_init(&high_attr)); in main() 115 SAFE_PFUNC(pthread_attr_setinheritsched(&high_attr, PTHREAD_EXPLICIT_SCHED)); in main() 116 SAFE_PFUNC(pthread_attr_setschedpolicy(&high_attr, POLICY)); in main() 118 SAFE_PFUNC(pthread_attr_setschedparam(&high_attr, ¶m)); in main() 119 SAFE_PFUNC(pthread_create(&high_id, &high_attr, hi_prio_thread, NULL)); in main() [all …]
|
D | pthread_cond_wait_2.c | 61 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in hi_prio_thread() 67 SAFE_PFUNC(pthread_mutex_lock(&mutex)); in hi_prio_thread() 70 SAFE_PFUNC(pthread_cond_wait(&cond, &mutex)); in hi_prio_thread() 78 SAFE_PFUNC(pthread_mutex_unlock(&mutex)); in hi_prio_thread() 91 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, ¶m)); in low_prio_thread() 114 SAFE_PFUNC(pthread_attr_init(&high_attr)); in main() 115 SAFE_PFUNC(pthread_attr_setinheritsched(&high_attr, PTHREAD_EXPLICIT_SCHED)); in main() 116 SAFE_PFUNC(pthread_attr_setschedpolicy(&high_attr, POLICY)); in main() 118 SAFE_PFUNC(pthread_attr_setschedparam(&high_attr, ¶m)); in main() 119 SAFE_PFUNC(pthread_create(&high_id, &high_attr, hi_prio_thread, NULL)); in main() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/ |
D | 3-1.c | 41 SAFE_PFUNC(pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL)); in thread_func() 62 SAFE_PFUNC(pthread_create(&th, NULL, thread_func, NULL)); in main() 66 SAFE_PFUNC(pthread_cancel(th)); in main() 75 SAFE_PFUNC(pthread_join(th, NULL)); in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/ |
D | 14-1.c | 69 SAFE_PFUNC(pthread_sigmask(SIG_BLOCK, &usersigs, NULL)); in sendsig() 122 SAFE_PFUNC(pthread_attr_init(&attr)); in test() 123 SAFE_PFUNC(pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED)); in test() 124 SAFE_PFUNC(pthread_create(&th_sig1, &attr, sendsig, NULL)); in test() 161 SAFE_PFUNC(pthread_join(child, NULL)); in test()
|
/external/ltp/testcases/open_posix_testsuite/include/ |
D | safe_helpers.h | 22 #define SAFE_PFUNC(op) \ macro
|