some of this code should be cleaned up, e.g. using macros for some of the bit flags, masks, etc. nonetheless, the code is believed to be working and correct at this point.
7 lines
141 B
C
7 lines
141 B
C
#include "pthread_impl.h"
|
|
|
|
int pthread_mutexattr_getrobust(const pthread_mutexattr_t *a, int *robust)
|
|
{
|
|
*robust = *a / 4U % 2;
|
|
return 0;
|
|
}
|