Obtains the current scheduling policy of a thread.
pthread_getscheduler(
                     thread );
 
Argument         Data Type               Access
thread           opaque pthread_t        read
int pthread_getscheduler ( pthread_t 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 DescriptionScheduling Successful completion. policy value -1 [EINVAL] The value specified by thread is invalid. -1 [ESRCH] The value specified by thread does not refer to an existing thread.