#include <oskit/threads/pthread.h>int pthread_attr_setprio(pthread_attr_t *attr, int pri);
Set the priority value 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.
- pri
- A value between PRIORITY_MIN and PRIORITY_MAX.
Returns zero on success. Returns EINVAL if priority is outside the range of PRIORITY_MIN to PRIORITY_MAX.
pthread_create, pthread_attr_init, pthread_attr_setstacksize