pthread_attr_getschedpolicy

Returns the schedule policy attribute for the thread.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

  #include <pthread.h>
  
  int pthread_attr_getschedpolicy (
     const pthread_attr_t   *attr,
     int                    *policy);
  

Parameters

attr

(IN) Points to a thread attribute structure.

policy

(OUT) Points to the value for the schedule policy attribute (the attr_policy field). The only value supported on NetWare is SCHED_FIFO (first in, first out).

Return Values

If successful, returns 0; otherwise, returns a nonzero error code.

See Also