source: rtems/testsuites/psxtests/psx04/task1.c @ 1f4f392a

4.104.114.84.95
Last change on this file since 1f4f392a was 1f4f392a, checked in by Joel Sherrill <joel.sherrill@…>, on 09/18/96 at 22:23:15

new files

  • Property mode set to 100644
File size: 962 bytes
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, 1990, 1991, 1992, 1993, 1994.
11 *  On-Line Applications Research Corporation (OAR).
12 *  All rights assigned to U.S. Government, 1994.
13 *
14 *  This material may be reproduced by or for the U.S. Government pursuant
15 *  to the copyright license under the clause at DFARS 252.227-7013.  This
16 *  notice must appear in all copies of this file and its derivatives.
17 *
18 *  $Id$
19 */
20
21#include "system.h"
22#include <signal.h>
23
24void *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.