RTEMS Logo

RTEMS 4.6.1 On-Line Library


Thread Manager pthread_attr_setinheritsched - Set Inherit Scheduler Flag

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

17.4.11: pthread_attr_setinheritsched - Set Inherit Scheduler Flag

CALLING SEQUENCE:

#include <pthread.h>

int pthread_attr_setinheritsched(
  pthread_attr_t *attr,
  int             inheritsched
);

STATUS CODES:

EINVAL
The attribute pointer argument is invalid.
EINVAL
The attribute set is not initialized.
EINVAL
The specified scheduler inheritance argument is invalid.

DESCRIPTION:

The pthread_attr_setinheritsched routine is used to set the inherit scheduler field in the thread attribute object attr to the value specified by inheritsched.

The contentionscope must be either PTHREAD_INHERIT_SCHED to indicate that the thread is to inherit the scheduling policy and parameters fromthe creating thread, or PTHREAD_EXPLICIT_SCHED to indicate that the scheduling policy and parameters for this thread are to be set from the corresponding values in the attributes object. If contentionscope is PTHREAD_INHERIT_SCHED, then the scheduling attributes in the attr structure will be ignored at thread creation time.

NOTES:

As required by POSIX, RTEMS defines the feature symbol _POSIX_THREAD_PRIORITY_SCHEDULING to indicate that the family of routines to which this routine belongs is supported.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2004 OAR Corporation