pthread_getconcurrency() — Get the level of concurrency

Standards

Standards / Extensions C or C++ Dependencies

Single UNIX Specification, Version 3

both

z/OS V1R7
POSIX(ON)

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