diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-11-17 18:42:16 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-11-17 18:42:16 -0500 |
commit | 5c6443ac42ba00ad3a0b4e98db4cc8f45596ca93 (patch) | |
tree | 2ce1b3ac12ce35ad66baadd4cd7449003297b31e /include/pthread.h | |
parent | bb9abdef48969671ee51f28379981a13c440d0d9 (diff) | |
download | musl-5c6443ac42ba00ad3a0b4e98db4cc8f45596ca93.tar.gz musl-5c6443ac42ba00ad3a0b4e98db4cc8f45596ca93.tar.bz2 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 'include/pthread.h')
-rw-r--r-- | include/pthread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/pthread.h b/include/pthread.h index 660a64d9..6eee14cb 100644 --- a/include/pthread.h +++ b/include/pthread.h @@ -105,6 +105,9 @@ int pthread_mutex_timedlock(pthread_mutex_t *__restrict, const struct timespec * int pthread_mutex_destroy(pthread_mutex_t *); int pthread_mutex_consistent(pthread_mutex_t *); +int pthread_mutex_getprioceiling(const pthread_mutex_t *__restrict, int *__restrict); +int pthread_mutex_setprioceiling(pthread_mutex_t *__restrict, int, int *__restrict); + int pthread_cond_init(pthread_cond_t *__restrict, const pthread_condattr_t *__restrict); int pthread_cond_destroy(pthread_cond_t *); int pthread_cond_wait(pthread_cond_t *__restrict, pthread_mutex_t *__restrict); @@ -192,6 +195,8 @@ int pthread_atfork(void (*)(void), void (*)(void), void (*)(void)); int pthread_getconcurrency(void); int pthread_setconcurrency(int); +int pthread_getcpuclockid(pthread_t, clockid_t *); + struct __ptcb { void (*__f)(void *); void *__x; |