#include <oskit/threads/pthread.h>
#include <oskit/threads/cpuinherit.h>int pthread_attr_setscheduler(pthread_attr_t *attr, pthread_t tid);
Set the scheduler thread in a previously initialized threads attribute object, for use with pthread_create. Any thread created with the given attributes object will have it's scheduler thread set to tid. The caller can thus set up an arbitrary scheduler and thread hierarchy by using this routine.
- attr
- A pointer to the pthread_attr_t object representing the attributes for a thread creation.
- tid
- The pthread_t of the thread that will function as the scheduler for new threads.
Returns zero on success.
pthread_attr_setopaque