repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
synccall: add separate exit_sem to fix thread release logic bug
[musl.git]
/
src
/
thread
/
pthread_mutexattr_settype.c
blob
cd7a80e342c69981f6f3095e17dfb88739c38281
1
#include
"pthread_impl.h"
2
3
int
pthread_mutexattr_settype
(
pthread_mutexattr_t
*
a
,
int
type
)
4
{
5
if
((
unsigned
)
type
>
2
)
return
EINVAL
;
6
a
->
__attr
= (
a
->
__attr
& ~
3
) |
type
;
7
return
0
;
8
}