![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Set thread scheduling parameters
#include <pthread.h>
int pthread_setschedparam(
pthread_t thread,
int policy,
const struct sched_param *param );
For more information, see "Thread scheduling" in the QNX Neutrino Microkernel chapter of the System Architecture guide.
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The pthread_setschedparam() function sets the scheduling policy and associated scheduling parameters of thread thread to the values specified in policy and param.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
pthread_getschedparam(), sched_param
![]() |
![]() |
![]() |
![]() |