#include <oskit/threads/pthread.h>
#include <oskit/threads/cpuinherit.h>int pthread_sched_setstate(pthread_t tid, int opaque);
Change the scheduling parameter for the thread specified by tid. An scheduler specific opaque value should be passed, which is then sent via a scheduling message to the message queue of the scheduler responsible for the given thread. This interface routine is entirely ad-hoc, and is intended to be used until something better is formulated.
- tid
- The pthread_t of the thread to donate to.
- opaque
- An opaque value that hopefully makes sense to the thread's scheduler.
Always returns zero.