mirror of
https://github.com/fluencelabs/musl
synced 2025-05-28 15:11:34 +00:00
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. :-)
10 lines
150 B
C
10 lines
150 B
C
#include <pthread.h>
|
|
#include <errno.h>
|
|
|
|
int pthread_setconcurrency(int val)
|
|
{
|
|
if (val < 0) return EINVAL;
|
|
if (val > 0) return EAGAIN;
|
|
return 0;
|
|
}
|