posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
XSI_THREADS_EXT

XSI Threads Extensions option group. More...

Functions

int pthread_getconcurrency (void)
 Get the concurrency level (advisory, has no effect on scheduling).
 
int pthread_setconcurrency (int new_level)
 Set the concurrency level (advisory, has no effect on scheduling).
 

Detailed Description

XSI Threads Extensions option group.

Function Documentation

◆ pthread_getconcurrency()

int pthread_getconcurrency ( void  )

Get the concurrency level (advisory, has no effect on scheduling).

Returns
Current concurrency level.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_getconcurrency.html

◆ pthread_setconcurrency()

int pthread_setconcurrency ( int  new_level)

Set the concurrency level (advisory, has no effect on scheduling).

Parameters
new_levelDesired concurrency level (0 = implementation default).
Returns
0 on success, or a positive error number on failure.
See also
https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_setconcurrency.html