#include <pthread.h> int pthread_attr_setinheritsched( pthread_attr_t *attr, int inheritsched );
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.
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.
Copyright © 1988-2008 OAR Corporation