RTEMS Logo

RTEMS 4.7.99.2 On-Line Library


Thread Manager pthread_getschedparam - Get Thread Scheduling Parameters

PREV UP next Bookshelf RTEMS POSIX API User's Guide

17.4.25: pthread_getschedparam - Get Thread Scheduling Parameters

CALLING SEQUENCE:

#include <pthread.h>

int pthread_getschedparam(
  pthread_t           thread,
  int                *policy,
  struct sched_param *param
);

STATUS CODES:

EINVAL
The policy pointer argument is invalid.
EINVAL
The scheduling parameters pointer argument is invalid.
ESRCH
The thread indicated by the parameter thread is invalid.

DESCRIPTION:

The pthread_getschedparam routine is used to obtain the scheduler policy and parameters associated with thread. The current policy and associated parameters values returned in policy and param, respectively.

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