1 #include "pthread_impl.h" 2 pthread_attr_setschedpolicy(pthread_attr_t * a,int policy)3int pthread_attr_setschedpolicy(pthread_attr_t *a, int policy) 4 { 5 #ifdef __LITEOS_A__ 6 if (policy != SCHED_RR && policy != SCHED_FIFO && policy != SCHED_DEADLINE) { 7 return EINVAL; 8 } 9 #endif 10 a->_a_policy = policy; 11 return 0; 12 } 13