Searched refs:POLICY (Results 1 - 8 of 8) sorted by relevance

/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/fork/
H A D17-1.c82 #define POLICY SCHED_RR macro
99 sp.sched_priority = param = sched_get_priority_max( POLICY );
106 ret = sched_setscheduler( 0, POLICY, &sp );
133 if ( ret != POLICY )
H A D17-2.c82 #define POLICY SCHED_FIFO macro
99 sp.sched_priority = param = sched_get_priority_max( POLICY );
106 ret = sched_setscheduler( 0, POLICY, &sp );
133 if ( ret != POLICY )
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_attr_setinheritsched/
H A D2-3.c29 #define POLICY SCHED_FIFO macro
46 if(policy == POLICY) {
77 rc = pthread_setschedparam(pthread_self(), POLICY, &param);
H A D2-4.c29 #define POLICY SCHED_RR macro
46 if(policy == POLICY) {
65 rc = pthread_setschedparam(pthread_self(), POLICY, &param);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_attr_setschedparam/
H A D1-3.c29 #define POLICY SCHED_FIFO macro
46 if(policy == POLICY) {
68 rc = pthread_attr_setschedpolicy(&attr, POLICY);
H A D1-4.c29 #define POLICY SCHED_RR macro
49 if(policy == POLICY) {
71 rc = pthread_attr_setschedpolicy( &attr, POLICY);
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/functional/threads/condvar/
H A Dpthread_cond_wait_1.c36 #define POLICY SCHED_RR macro
74 rc = pthread_setschedparam(pthread_self(), POLICY, &param);
84 if((policy != POLICY) || (param.sched_priority != HIGH_PRIORITY)) {
135 rc = pthread_setschedparam(pthread_self(), POLICY, &param);
145 if((policy != POLICY) || (param.sched_priority != LOW_PRIORITY)) {
176 rc = pthread_attr_setschedpolicy(&high_attr, POLICY);
199 rc = pthread_attr_setschedpolicy(&low_attr, POLICY);
H A Dpthread_cond_wait_2.c37 #define POLICY SCHED_RR macro
75 rc = pthread_setschedparam(pthread_self(), POLICY, &param);
85 if((policy != POLICY) || (param.sched_priority != HIGH_PRIORITY)) {
136 rc = pthread_setschedparam(pthread_self(), POLICY, &param);
146 if((policy != POLICY) || (param.sched_priority != LOW_PRIORITY)) {
177 rc = pthread_attr_setschedpolicy(&high_attr, POLICY);
200 rc = pthread_attr_setschedpolicy(&low_attr, POLICY);

Completed in 63 milliseconds