Obtains the current priority of a thread.
pthread_getprio( thread );
Argument Data Type Accessthread opaque pthread_t read
int pthread_getprio ( pthread_t thread);
The exact effect of different priority values depends upon the scheduling policy assigned to the thread.
If an error condition occurs, this routine returns -1 and sets errno to the corresponding error value. Possible return values are as follows:
Return Error DescriptionPriority Successful completion. value -1 [EINVAL] The value specified by thread is invalid.