next up previous contents index
Next: 25.6.5 pthread_cond_donate_wait: Timed condition Up: 25.6 CPU Inheritance Framework Previous: 25.6.3 pthread_sched_message_recv: Scheduling message

25.6.4 pthread_sched_setstate: Set the scheduling parameters for a thread

 

SYNOPSIS

#include <oskit/threads/pthread.h>
#include <oskit/threads/cpuinherit.h>

int pthread_sched_setstate(pthread_t tid, int opaque);

DESCRIPTION

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.

PARAMETERS

tid
The pthread_t of the thread to donate to.
opaque
An opaque value that hopefully makes sense to the thread's scheduler.

RETURNS

Always returns zero.



Utah Flux Research Group