source:
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/thread/pthread_mutexattr_setpshared.c@
473
Last change on this file since 473 was 337, checked in by , 6 years ago | |
---|---|
|
|
File size: 193 bytes |
Rev | Line | |
---|---|---|
[337] | 1 | #include "pthread_impl.h" |
2 | ||
3 | int pthread_mutexattr_setpshared(pthread_mutexattr_t *a, int pshared) | |
4 | { | |
5 | if (pshared > 1U) return EINVAL; | |
6 | a->__attr &= ~128U; | |
7 | a->__attr |= pshared<<7; | |
8 | return 0; | |
9 | } |
Note:
See TracBrowser
for help on using the repository browser.