pthread_getconcurrency() — Get the level of concurrency
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
Single UNIX Specification, Version 3 |
both | z/OS V1R7 |
Format
#define _OPEN_THREADS 2
#include <pthread.h>
int pthread_getconcurrency(void);
General description
pthread_getconcurrency() returns the value set by a previous call to pthread_setconcurrency(), or 0 if pthread_setconcurrency() was not previously called.
Returned value
If successful, pthread_getconcurrency() returns the concurrency level set by a previous call to pthread_setconcurrency(); otherwise, 0.
Related information
- "Thread Cancellation" in the z/OS XL C/C++ Programming Guide
- pthread.h
- pthread_setconcurrency() — Set the level of concurrency