RTEMS Logo

RTEMS 4.10.2 On-Line Library


Thread Manager pthread_attr_setschedpolicy - Set Scheduling Policy

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

17.4.13: pthread_attr_setschedpolicy - Set Scheduling Policy

CALLING SEQUENCE:

#include <pthread.h>

int pthread_attr_setschedpolicy(
  pthread_attr_t *attr,
  int             policy
);

STATUS CODES:

EINVAL
The attribute pointer argument is invalid.
EINVAL
The attribute set is not initialized.
ENOTSUP
The specified scheduler policy argument is invalid.

DESCRIPTION:

The pthread_attr_setschedpolicy routine is used to set the scheduler policy field in the thread attribute object attr to the value specified by policy.

Scheduling policies may be one of the following:

The precise meaning of each of these is discussed elsewhere in this manual.

NOTES:

As required by POSIX, RTEMS defines the feature symbol _POSIX_THREAD_PRIORITY_SCHEDULING to indicate that the family of routines to which this routine belongs is supported.


PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

Copyright © 1988-2008 OAR Corporation