next up previous contents index
Next: 25.6.8 Example Schedulers Up: 25.6 CPU Inheritance Framework Previous: 25.6.6 pthread_attr_setscheduler: Set the

25.6.7 pthread_attr_setopaque: Set the scheduling parameter in a thread attributes object

 

SYNOPSIS

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

int pthread_attr_setopaque(pthread_attr_t *attr, oskit_u32_t opaque);

DESCRIPTION

Set the scheduling parameter in a previously initialized threads attribute object, for use with pthread_create. This opaque value will be passed to the thread's scheduler in the initial MSG_SCHED_NEWTHREAD message, after the thread is created and ready to be scheduled. The opaque value should make sense to the scheduler selected with pthread_attr_setscheduler.

PARAMETERS

attr
A pointer to the pthread_attr_t object representing the attributes for a thread creation.
opaque
An opaque value that hopefully makes sense to the scheduler.

RETURNS

Returns zero on success.

RELATED INFORMATION

pthread_attr_setscheduler


Utah Flux Research Group