4.104.114.84.95
Line | |
---|
1 | /* Task_1 |
---|
2 | * |
---|
3 | * This routine serves as a test task. |
---|
4 | * |
---|
5 | * Input parameters: |
---|
6 | * argument - task argument |
---|
7 | * |
---|
8 | * Output parameters: NONE |
---|
9 | * |
---|
10 | * COPYRIGHT (c) 1989-1998. |
---|
11 | * On-Line Applications Research Corporation (OAR). |
---|
12 | * Copyright assigned to U.S. Government, 1994. |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.OARcorp.com/rtems/license.html. |
---|
17 | * |
---|
18 | * $Id$ |
---|
19 | */ |
---|
20 | |
---|
21 | #include "system.h" |
---|
22 | #include <signal.h> |
---|
23 | |
---|
24 | void *Task_1( |
---|
25 | void *argument |
---|
26 | ) |
---|
27 | { |
---|
28 | int seconds; |
---|
29 | |
---|
30 | printf( "Task_1: sleeping for 5 seconds\n" ); |
---|
31 | |
---|
32 | seconds = sleep( 5 ); |
---|
33 | printf( "Task_1: %d seconds left\n", seconds ); |
---|
34 | assert( seconds ); |
---|
35 | |
---|
36 | /* switch to Init */ |
---|
37 | |
---|
38 | printf( "Task_1: exit\n" ); |
---|
39 | pthread_exit( NULL ); |
---|
40 | |
---|
41 | /* switch to Init */ |
---|
42 | |
---|
43 | return NULL; /* just so the compiler thinks we returned something */ |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.