musl/src/thread/pthread_setconcurrency.c
Rich Felker ddd87b2f10 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. :-)
2011-05-30 11:31:07 -04:00

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;
}