summaryrefslogtreecommitdiffstats
path: root/contrib/restricted/emscripten/system/lib/libc/musl/src/thread/pthread_setconcurrency.c
blob: deadf26ba9433517d9d2c82056fa302ac06ecc61 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <pthread.h>
#include <errno.h>

int pthread_setconcurrency(int val)
{
#ifndef __EMSCRIPTEN__ // XXX Emscripten marked as obsolescent in pthreads specification
	if (val < 0) return EINVAL;
	if (val > 0) return EAGAIN;
#endif
	return 0;
}