5
Last change
on this file since de59c065 was
de59c065,
checked in by Sebastian Huber <sebastian.huber@…>, on 09/27/17 at 13:08:33
|
posix: Implement self-contained POSIX mutex
POSIX mutexes are now available in all configurations and no longer
depend on --enable-posix.
Update #2514.
Update #3112.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /* system.h |
---|
2 | * |
---|
3 | * This include file contains information that is included in every |
---|
4 | * function in the test set. |
---|
5 | * |
---|
6 | * The license and distribution terms for this file may be |
---|
7 | * found in the file LICENSE in this distribution or at |
---|
8 | * http://www.rtems.org/license/LICENSE. |
---|
9 | */ |
---|
10 | |
---|
11 | /* functions */ |
---|
12 | |
---|
13 | #include <pmacros.h> |
---|
14 | #include <unistd.h> |
---|
15 | #include <errno.h> |
---|
16 | #include <sched.h> |
---|
17 | |
---|
18 | void *POSIX_Init ( |
---|
19 | void *arg |
---|
20 | ); |
---|
21 | |
---|
22 | void *task_a( |
---|
23 | void *arg |
---|
24 | ); |
---|
25 | |
---|
26 | void *task_b( |
---|
27 | void *arg |
---|
28 | ); |
---|
29 | |
---|
30 | void *task_c( |
---|
31 | void *arg |
---|
32 | ); |
---|
33 | |
---|
34 | |
---|
35 | /* configuration information */ |
---|
36 | |
---|
37 | #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER |
---|
38 | #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER |
---|
39 | |
---|
40 | #define CONFIGURE_POSIX_INIT_THREAD_TABLE |
---|
41 | |
---|
42 | #define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION |
---|
43 | |
---|
44 | #define CONFIGURE_MAXIMUM_POSIX_THREADS 4 |
---|
45 | #define CONFIGURE_MAXIMUM_POSIX_TIMERS 4 |
---|
46 | #define CONFIGURE_MAXIMUM_TIMERS 4 |
---|
47 | |
---|
48 | |
---|
49 | #include <rtems/confdefs.h> |
---|
50 | |
---|
51 | /* global variables */ |
---|
52 | |
---|
53 | #ifdef CONFIGURE_INIT |
---|
54 | #define TEST_EXTERN |
---|
55 | #else |
---|
56 | #define TEST_EXTERN extern |
---|
57 | #endif |
---|
58 | |
---|
59 | TEST_EXTERN pthread_t Init_id; |
---|
60 | TEST_EXTERN pthread_t Task_id; |
---|
61 | |
---|
62 | #undef TEST_EXTERN |
---|
63 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.