mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix omission of non-stub pthread_mutexattr_getprotocol
this change should have been made when priority inheritance mutex support was added. if priority protection is also added at some point the implementation will need to change and will probably no longer be a simple bit shuffling.
This commit is contained in:
parent
56f0631d95
commit
90ff016996
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ int pthread_condattr_getpshared(const pthread_condattr_t *restrict a, int *restr
|
|||
|
||||
int pthread_mutexattr_getprotocol(const pthread_mutexattr_t *restrict a, int *restrict protocol)
|
||||
{
|
||||
*protocol = PTHREAD_PRIO_NONE;
|
||||
*protocol = a->__attr / 8U % 2;
|
||||
return 0;
|
||||
}
|
||||
int pthread_mutexattr_getpshared(const pthread_mutexattr_t *restrict a, int *restrict pshared)
|
||||
|
|
Loading…
Add table
Reference in a new issue