about summary refs log tree commit diff
path: root/include/pthread.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-05-30 11:31:07 -0400
committerRich Felker <dalias@aerifal.cx>2011-05-30 11:31:07 -0400
commitddd87b2f10baf35ed32917bd488be8bf53ad0cc3 (patch)
treef744f682dfdaaf2ee5cbb8b43d8c5c4403cc27cf /include/pthread.h
parent11c531e21de9c417166da934898ea7225a758fdf (diff)
downloadmusl-ddd87b2f10baf35ed32917bd488be8bf53ad0cc3.tar.gz
musl-ddd87b2f10baf35ed32917bd488be8bf53ad0cc3.tar.xz
musl-ddd87b2f10baf35ed32917bd488be8bf53ad0cc3.zip
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. :-)
Diffstat (limited to 'include/pthread.h')
-rw-r--r--include/pthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h
index 43754ddd..5d97ebf6 100644
--- a/include/pthread.h
+++ b/include/pthread.h
@@ -178,6 +178,9 @@ int pthread_barrierattr_setpshared(pthread_barrierattr_t *, int);
 
 int pthread_atfork(void (*)(void), void (*)(void), void (*)(void));
 
+int pthread_getconcurrency(void);
+int pthread_setconcurrency(int);
+
 #include <bits/pthread.h>
 
 int __setjmp(void *);