[Previous] [Contents] [Next]

pthread_getschedparam()

Get thread scheduling parameters

Synopsis:

#include <pthread.h>

int pthread_getschedparam(
               const pthread_t thread,
               int* policy,
               struct sched_param* param );

Library:

libc

Description:

The pthread_getschedparam() function gets the scheduling policy and associated scheduling parameters of thread thread and places them in policy and param.

The value of the sched_priority member of param is the priority specified by the most recent pthread_setschedparam() or pthread_create() call affecting the target thread, and doesn't reflect any temporary adjustment to the thread's priority due to priority inheritance.

Returns:

EOK
Success.
EFAULT
A fault occurred trying to access the buffers provided.
ESRCH
Invalid thread ID thread.

Classification:

POSIX 1003.1 (Threads)

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

See also:

pthread_create(), pthread_setschedparam()


[Previous] [Contents] [Next]