From 5c6443ac42ba00ad3a0b4e98db4cc8f45596ca93 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 17 Nov 2012 18:42:16 -0500 Subject: 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. --- src/thread/pthread_getcpuclockid.c | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/thread/pthread_getcpuclockid.c (limited to 'src/thread/pthread_getcpuclockid.c') diff --git a/src/thread/pthread_getcpuclockid.c b/src/thread/pthread_getcpuclockid.c new file mode 100644 index 00000000..cf3d2b84 --- /dev/null +++ b/src/thread/pthread_getcpuclockid.c @@ -0,0 +1,6 @@ +#include "pthread_impl.h" + +int pthread_getcpuclockid(pthread_t t, clockid_t *clockid) +{ + return ENOSYS; +} -- cgit v1.2.1