pthread_attr_setinheritsched

Sets the inherit schedule attribute.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

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

Parameters

attr

(IN) Points to a thread attribute structure.

inheritsched

(IN) Specifies the value for the inherit schedule attribute with one of the following flags:

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

9

EINVAL

The inheritsched parameter is not valid.

66

ENOSYS

This functionality is not supported.

79

ENOTSUP

The specified value for the inherit schedule attribute is not supported.

Remarks

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

See Also