Get thread scheduling policy attribute
#include <pthread.h>
#include <sched.h>
int pthread_attr_getschedpolicy(
const pthread_attr_t* attr,
int* policy );
libc
The pthread_attr_getschedpolicy() function gets the thread scheduling policy attribute from the thread attribute object attr and returns it in policy.
See the pthread_attr_setschedpolicy() function for possible values of policy.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
pthread_attr_setschedpolicy(), pthread_attr_init(), pthread_create().