4.104.114.84.95
Last change
on this file since 811fae1 was
98dca75,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/02/99 at 18:25:26
|
Split condition variables into multiple files.
|
-
Property mode set to
100644
|
File size:
702 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | */ |
---|
4 | |
---|
5 | #include <pthread.h> |
---|
6 | #include <errno.h> |
---|
7 | |
---|
8 | #include <rtems/system.h> |
---|
9 | #include <rtems/score/object.h> |
---|
10 | #include <rtems/score/states.h> |
---|
11 | #include <rtems/score/watchdog.h> |
---|
12 | #include <rtems/posix/cond.h> |
---|
13 | #include <rtems/posix/time.h> |
---|
14 | #include <rtems/posix/mutex.h> |
---|
15 | |
---|
16 | /*PAGE |
---|
17 | * |
---|
18 | * 11.4.1 Condition Variable Initialization Attributes, |
---|
19 | * P1003.1c/Draft 10, p. 96 |
---|
20 | */ |
---|
21 | |
---|
22 | int pthread_condattr_setpshared( |
---|
23 | pthread_condattr_t *attr, |
---|
24 | int pshared |
---|
25 | ) |
---|
26 | { |
---|
27 | if ( !attr ) |
---|
28 | return EINVAL; |
---|
29 | |
---|
30 | switch ( pshared ) { |
---|
31 | case PTHREAD_PROCESS_SHARED: |
---|
32 | case PTHREAD_PROCESS_PRIVATE: |
---|
33 | attr->process_shared = pshared; |
---|
34 | return 0; |
---|
35 | |
---|
36 | default: |
---|
37 | return EINVAL; |
---|
38 | } |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.