summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/thread/pthread_getconcurrency.c6
-rw-r--r--src/thread/pthread_setconcurrency.c9
2 files changed, 15 insertions, 0 deletions
diff --git a/src/thread/pthread_getconcurrency.c b/src/thread/pthread_getconcurrency.c
new file mode 100644
index 00000000..269429a8
--- /dev/null
+++ b/src/thread/pthread_getconcurrency.c
@@ -0,0 +1,6 @@
+#include <pthread.h>
+
+int pthread_getconcurrency()
+{
+ return 0;
+}
diff --git a/src/thread/pthread_setconcurrency.c b/src/thread/pthread_setconcurrency.c
new file mode 100644
index 00000000..091abf98
--- /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;
+}