Sign in
cobalt
/
cobalt
/
4db9f13a160f367210321ab353f1fd251699bffb
/
.
/
third_party
/
musl
/
src
/
thread
/
pthread_mutexattr_settype.c
blob: cd7a80e342c69981f6f3095e17dfb88739c38281 [
file
] [
log
] [
blame
]
#include
"pthread_impl.h"
int
pthread_mutexattr_settype
(
pthread_mutexattr_t
*
a
,
int
type
)
{
if
((
unsigned
)
type
>
2
)
return
EINVAL
;
a
->
__attr
=
(
a
->
__attr
&
~
3
)
|
type
;
return
0
;
}