implement pthread_[sg]etconcurrency.
there is a resource limit of 0 bits to store the concurrency level requested. thus any positive level exceeds a resource limit, resulting in EAGAIN. :-)
This commit is contained in:
parent
11c531e21d
commit
ddd87b2f10
3 changed files with 18 additions and 0 deletions
|
|
@ -178,6 +178,9 @@ int pthread_barrierattr_setpshared(pthread_barrierattr_t *, int);
|
|||
|
||||
int pthread_atfork(void (*)(void), void (*)(void), void (*)(void));
|
||||
|
||||
int pthread_getconcurrency(void);
|
||||
int pthread_setconcurrency(int);
|
||||
|
||||
#include <bits/pthread.h>
|
||||
|
||||
int __setjmp(void *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue