RTEMS Logo

RTEMS 4.10.2 On-Line Library


Thread Manager pthread_attr_setscope - Set Thread Scheduling Scope

PREV UP NEXT Bookshelf RTEMS POSIX API User's Guide

17.4.9: pthread_attr_setscope - Set Thread Scheduling Scope

CALLING SEQUENCE:

#include <pthread.h>

int pthread_attr_setscope(
  pthread_attr_t *attr,
  int             contentionscope
);

STATUS CODES:

EINVAL
The attribute pointer argument is invalid.
EINVAL
The attribute set is not initialized.
EINVAL
The contention scope specified is not valid.
ENOTSUP
The contention scope specified (PTHREAD_SCOPE_SYSTEM) is not supported.

DESCRIPTION:

The pthread_attr_setscope routine is used to set the contention scope field in the thread attribute object attr to the value specified by contentionscope.

The contentionscope must be either PTHREAD_SCOPE_SYSTEM to indicate that the thread is to be within system scheduling contention or PTHREAD_SCOPE_PROCESS indicating that the thread is to be within the process scheduling contention scope.

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