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.
This commit is contained in:
Rich Felker committed 2012-11-17 18:42:16 -05:00
1 parent bb9abdef48
commit 5c6443ac42
6 files changed
+35

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
#include "pthread_impl.h"
int pthread_getcpuclockid(pthread_t t, clockid_t *clockid)
{
return ENOSYS;
}