pthread_attr_setschedpolicy

Sets the schedule policy attribute for the thread.

Library:LibC
Classification:POSIX
Service:Threads

Syntax

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

Parameters

attr

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

policy

(OUT) Specifies 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:

Decimal

Constant

Description

79

ENOTSUP

The value specified in the policy parameter is not supported.

See Also