mirror of
https://github.com/fluencelabs/musl
synced 2025-05-28 15:11:34 +00:00
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.
8 lines
145 B
C
8 lines
145 B
C
#include "pthread_impl.h"
|
|
|
|
int pthread_mutexattr_setprotocol(pthread_mutexattr_t *a, int protocol)
|
|
{
|
|
if (protocol) return ENOTSUP;
|
|
return 0;
|
|
}
|