[Previous] [Contents] [Next]

pthread_attr_getschedpolicy()

Get thread scheduling policy attribute

Synopsis:

#include <pthread.h>
#include <sched.h>

int pthread_attr_getschedpolicy(
                    const pthread_attr_t* attr,
                    int* policy );

Library:

libc

Description:

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.

Returns:

EOK
Success.

Classification:

POSIX 1003.1 (Threads)

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

pthread_attr_setschedpolicy(), pthread_attr_init(), pthread_create().


[Previous] [Contents] [Next]