next up previous contents index
Next: 25.6.7 pthread_attr_setopaque: Set the Up: 25.6 CPU Inheritance Framework Previous: 25.6.5 pthread_cond_donate_wait: Timed condition

25.6.6 pthread_attr_setscheduler: Set the scheduler in a thread attributes object

 

SYNOPSIS

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

int pthread_attr_setscheduler(pthread_attr_t *attr, pthread_t tid);

DESCRIPTION

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.

PARAMETERS

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

Returns zero on success.

RELATED INFORMATION

pthread_attr_setopaque



Utah Flux Research Group