source: rtems/testsuites/psxtests/psx01/init.c @ be1c11ed

4.104.114.84.95
Last change on this file since be1c11ed was be1c11ed, checked in by Joel Sherrill <joel.sherrill@…>, on 05/29/96 at 22:48:26

tests now specify whether using posix initialization threads table
or rtems initialization table in configuration table

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*  Init
2 *
3 *  This routine is the initialization task for this test program.
4 *  It is a user initialization task and has the responsibility for creating
5 *  and starting the tasks that make up the test.  If the time of day
6 *  clock is required for the test, it should also be set to a known
7 *  value by this function.
8 *
9 *  Input parameters:
10 *    argument - task argument
11 *
12 *  Output parameters:  NONE
13 *
14 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
15 *  On-Line Applications Research Corporation (OAR).
16 *  All rights assigned to U.S. Government, 1994.
17 *
18 *  This material may be reproduced by or for the U.S. Government pursuant
19 *  to the copyright license under the clause at DFARS 252.227-7013.  This
20 *  notice must appear in all copies of this file and its derivatives.
21 *
22 *  $Id$
23 */
24
25#define CONFIGURE_INIT
26#include "system.h"
27
28void *POSIX_Init(
29  void *argument
30)
31{
32  int        status;
33  pthread_t  thread_id;
34
35  puts( "\n\n*** POSIX TEST 1 ***" );
36
37  /* set the time of day */
38
39  /* create the three tasks */
40
41  /* exit */
42
43  status = pthread_create( &thread_id, NULL, Task_1_through_3, NULL );
44  assert( !status );
45
46  pthread_exit( NULL );
47
48  /* just to satisfy compilers which think we did not return anything */
49
50  return NULL;
51}
Note: See TracBrowser for help on using the repository browser.