Home
last modified time | relevance | path

Searched refs:SAFE_PFUNC (Results 1 – 7 of 7) sorted by relevance

/external/ltp/testcases/open_posix_testsuite/functional/threads/schedule/
D1-2.c59 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); 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, &param)); in low_prio_thread()
118 SAFE_PFUNC(pthread_setschedparam(pthread_self(), SCHED_RR, &param)); in main()
119 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); 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 …]
D1-1.c68 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); in hi_prio_thread()
74 SAFE_PFUNC(my_pthread_barrier_wait(&barrier)); in hi_prio_thread()
94 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); 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, &param)); 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, &param)); in main()
[all …]
/external/ltp/testcases/open_posix_testsuite/functional/threads/condvar/
Dpthread_cond_wait_1.c61 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); 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, &param)); 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, &param)); in main()
119 SAFE_PFUNC(pthread_create(&high_id, &high_attr, hi_prio_thread, NULL)); in main()
[all …]
Dpthread_cond_wait_2.c61 SAFE_PFUNC(pthread_getschedparam(pthread_self(), &policy, &param)); 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, &param)); 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, &param)); 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/
D3-1.c41 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/
D14-1.c69 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/
Dsafe_helpers.h22 #define SAFE_PFUNC(op) \ macro