5
Last change
on this file since 99de42c was
c499856,
checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47
|
Change all references of rtems.com to rtems.org.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /* Task_2 |
---|
2 | * |
---|
3 | * This task initializes the signal catcher, sends the first signal |
---|
4 | * if running on the first node, and loops while waiting for signals. |
---|
5 | * |
---|
6 | * NOTE: The signal catcher is not reentrant and hence RTEMS_NO_ASR must |
---|
7 | * be a part of its execution mode. |
---|
8 | * |
---|
9 | * Input parameters: |
---|
10 | * argument - task argument |
---|
11 | * |
---|
12 | * Output parameters: NONE |
---|
13 | * |
---|
14 | * COPYRIGHT (c) 1989-1999. |
---|
15 | * On-Line Applications Research Corporation (OAR). |
---|
16 | * |
---|
17 | * The license and distribution terms for this file may be |
---|
18 | * found in the file LICENSE in this distribution or at |
---|
19 | * http://www.rtems.org/license/LICENSE. |
---|
20 | */ |
---|
21 | |
---|
22 | #ifdef HAVE_CONFIG_H |
---|
23 | #include "config.h" |
---|
24 | #endif |
---|
25 | |
---|
26 | #include "system.h" |
---|
27 | |
---|
28 | rtems_task Task_2( |
---|
29 | rtems_task_argument argument |
---|
30 | ) |
---|
31 | { |
---|
32 | rtems_status_code status; |
---|
33 | |
---|
34 | Task_2_preempted = FALSE; |
---|
35 | |
---|
36 | puts( "TA2 - Suspending self" ); |
---|
37 | status = rtems_task_suspend( RTEMS_SELF ); |
---|
38 | directive_failed( status, "rtems_task_suspend of TA2" ); |
---|
39 | |
---|
40 | puts( "TA2 - signal_return preempted correctly" ); |
---|
41 | |
---|
42 | Task_2_preempted = TRUE; |
---|
43 | |
---|
44 | status = rtems_task_suspend( RTEMS_SELF ); |
---|
45 | directive_failed( status, "rtems_task_suspend of TA2" ); |
---|
46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.