Standards / Extensions | C or C++ | Dependencies |
---|---|---|
Single UNIX Specification, Version 3 |
both | z/OS V1R7 |
#define _OPEN_THREADS 2
#include <pthread.h>
int pthread_getconcurrency(void);
pthread_getconcurrency() returns the value set by a previous call to pthread_setconcurrency(), or 0 if pthread_setconcurrency() was not previously called.
If successful, pthread_getconcurrency() returns the concurrency level set by a previous call to pthread_setconcurrency(); otherwise, 0.