#include <oskit/threads/pthread.h>int pthread_attr_setschedpolicy(pthread_attr_t *attr, int policy);
Set the scheduling policy in a previously initialized threads attribute object, for use with pthread_create.
- attr
- A pointer to the pthread_attr_t object representing the attributes for a thread creation.
- policy
- Either SCHED_FIFO or SCHED_RR.
Returns zero on success. Returns EINVAL if policy is invalid.
pthread_create, pthread_attr_init