about summary refs log tree commit diff
path: root/src/thread/pthread_mutex_setprioceiling.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-11-17 18:42:16 -0500
committerRich Felker <dalias@aerifal.cx>2012-11-17 18:42:16 -0500
commit5c6443ac42ba00ad3a0b4e98db4cc8f45596ca93 (patch)
tree2ce1b3ac12ce35ad66baadd4cd7449003297b31e /src/thread/pthread_mutex_setprioceiling.c
parentbb9abdef48969671ee51f28379981a13c440d0d9 (diff)
downloadmusl-5c6443ac42ba00ad3a0b4e98db4cc8f45596ca93.tar.gz
musl-5c6443ac42ba00ad3a0b4e98db4cc8f45596ca93.tar.xz
musl-5c6443ac42ba00ad3a0b4e98db4cc8f45596ca93.zip
add stub versions of some missing optional pthread interfaces
priority inheritance is not yet supported, and priority protection
probably will not be supported ever unless there's serious demand for
it (it's a fairly heavy-weight feature).

per-thread cpu clocks would be nice to have, but to my knowledge linux
is still not capable of supporting them. glibc fakes them by using the
_process_ cpu-time clock and subtracting the thread creation time,
which gives seriously incorrect semantics (worse than not supporting
the feature at all), so until there's a way to do it right, it will
remain as a stub that always fails.
Diffstat (limited to 'src/thread/pthread_mutex_setprioceiling.c')
-rw-r--r--src/thread/pthread_mutex_setprioceiling.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/thread/pthread_mutex_setprioceiling.c b/src/thread/pthread_mutex_setprioceiling.c
new file mode 100644
index 00000000..681f07c8
--- /dev/null
+++ b/src/thread/pthread_mutex_setprioceiling.c
@@ -0,0 +1,6 @@
+#include "pthread_impl.h"
+
+int pthread_mutex_setprioceiling(pthread_mutex_t *restrict m, int ceiling, int *restrict old)
+{
+	return EINVAL;
+}