pthread_attr_getinheritsched

Returns the inherit schedule attribute.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

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

Parameters

attr

(IN) Points to the attribute structure for the thread.

inheritsched

(OUT) Points to the value for the inherit schedule attribute. This attribute can be set to one of the following values:

Flag

Value

Description

PTHREAD_EXPLICIT_SCHED

0x0002

Specifies that the thread scheduling attributes are set to the values found in the attr parameter.

PTHREAD_INHERIT_SCHED

0x0004

Unsupported.

Return Values

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

Decimal

Constant

Description

66

ENOSYS

This functionality is not supported.

Remarks

NetWare does not allow a thread to inherit the scheduling attributes from the creating thread.

See Also