RTEMS  5.1
Functions
pthreadconcurrency.c File Reference

Pthread Get/Set Concurrency. More...

#include <pthread.h>
#include <errno.h>

Functions

int pthread_getconcurrency (void)
 
int pthread_setconcurrency (int new_level)
 

Detailed Description

Pthread Get/Set Concurrency.

Per the Open Group specification, when user pthreads are mapped 1:1 onto kernel threads, the implementation simply tracks an internal variable whose initial value is 0. If it is set, subsequent calls to obtain the value return that previously set.