projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
implement pthread_[sg]etconcurrency.
[musl]
/
src
/
thread
/
pthread_setconcurrency.c
diff --git a/src/thread/pthread_setconcurrency.c
b/src/thread/pthread_setconcurrency.c
new file mode 100644
(file)
index 0000000..
091abf9
--- /dev/null
+++ b/
src/thread/pthread_setconcurrency.c
@@ -0,0
+1,9
@@
+#include <pthread.h>
+#include <errno.h>
+
+int pthread_setconcurrency(int val)
+{
+ if (val < 0) return EINVAL;
+ if (val > 0) return EAGAIN;
+ return 0;
+}