NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | | ERRORS | ATTRIBUTES | SEE ALSO
$(OS_DIR)/lib/libpthreads.a #include <pthread.h>int pthread_attr_getschedpolicy(const pthread_attr_t * attr, int * policy);
The function or functions documented here may not be used safely in all application contexts with all APIs provided in the ChorusOS 5.0 product.
See API(5FEA) for details.
Thread creation attributes and their default values are summarized in pthread_attr_init(3POSIX) .
The schedpolicy attribute specifies the thread scheduling policy. Supported values include SCHED_RR, SCHED_FIFO, and SCHED_OTHER which is equivalent to SCHED_RR.
The pthread_attr_getschedpolicy() and pthread_attr_setschedpolicy() functions respectively get and set the schedpolicy attribute in the attr object.
On successful completion, all calls listed above return zero. Otherwise an error code is returned.
These calls do not set errno .
pthread_attr_setschedpolicy() was invoked with an unsupported value for the policy argument.
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE | ATTRIBUTE VALUE |
---|---|
Interface Stability | Evolving |
NAME | SYNOPSIS | API RESTRICTIONS | DESCRIPTION | | ERRORS | ATTRIBUTES | SEE ALSO