source:
asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/thread/pthread_mutexattr_settype.c@
352
Last change on this file since 352 was 352, checked in by , 6 years ago | |
---|---|
|
|
File size: 184 bytes |
Rev | Line | |
---|---|---|
[352] | 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 | } |
Note:
See TracBrowser
for help on using the repository browser.