Updated: October 28, 2024 |
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 the locations that policy and param point to.
As a QNX Neutrino extension, policy can be NULL, in which case the function doesn't try to store the scheduling policy.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |