#include <oskit/threads/pthread.h>
#include <oskit/threads/cpuinherit.h>int pthread_attr_setopaque(pthread_attr_t *attr, oskit_u32_t opaque);
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.
- 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 zero on success.
pthread_attr_setscheduler