Files
musl/src/thread/pthread_mutexattr_setrobust.c
Rich Felker 0109d950e6 make pthread attribute types structs, even when they just have one field
this change is to get the right tags for C++ ABI matching. it should
have no other effects.
2013-07-22 13:57:02 -04:00

10 lines
185 B
C

#include "pthread_impl.h"
int pthread_mutexattr_setrobust(pthread_mutexattr_t *a, int robust)
{
if (robust > 1U) return EINVAL;
a->__attr &= ~4;
a->__attr |= robust*4;
return 0;
}