pthread_attr_getschedparam

Returns the schedule parameter attribute for the thread.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

  #include <pthread.h>
  
  int pthread_attr_getschedparam (
     const pthread_attr_t   *attr,
     struct sched_param     *param);
  

Parameters

attr

(IN) Points to a thread attribute structure.

param

(OUT) Points to a structure that contains the value for the schedule parameter attribute in the sched_priority field of the sched_param structure.

Return Values

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

See Also