SYNOPSIS
#include <pthread.h>
int pthread_getschedparam(pthread_t thread, int *policy, struct sched_param *param);
DESCRIPTION
The
PARAMETERS
- thread
-
Is the ID of the thread whose scheduling parameters are to be obtained.
- policy
-
Is the location where the scheduling policy value is to be stored.
- param
-
Points to a structure where the current scheduling parameters is to be stored.
RETURN VALUES
On success,
- EINVAL
-
The locations pointed to by policy or param point are not writable.
- EFAULT
-
policy or param is an invalid pointer.
- ESRCH
-
thread does not specify a currently running thread in the process.
CONFORMANCE
POSIX P1003.1 (1996)
MULTITHREAD SAFETY LEVEL
MT-safe.
PORTING ISSUES
None.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
pthread_create() ,pthread_setschedparam()
PTC MKS Toolkit 10.4 Documentation Build 39.