This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Get a thread's scheduling parameters
#include <pthread.h> int pthread_getschedparam( const pthread_t thread, int *policy, struct sched_param *param );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_getschedparam() function gets the scheduling policy and associated scheduling parameters of thread thread and places them in policy and param.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
pthread_create(), pthread_setschedparam(), sched_param