RTEMS Logo

RTEMS 4.7.0 On-Line Library


Thread Manager pthread_attr_getschedpolicy - Get Scheduling Policy

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

17.4.14: pthread_attr_getschedpolicy - Get Scheduling Policy

CALLING SEQUENCE:

#include <pthread.h>

int pthread_attr_getschedpolicy(
  const pthread_attr_t *attr,
  int                  *policy
);

STATUS CODES:

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

DESCRIPTION:

The pthread_attr_getschedpolicy routine is used to obtain the scheduler policy field from the thread attribute object attr. The value of this field is returned in policy.

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-2004 OAR Corporation