source: rtems/testsuites/psxtests/psx12/task.c @ c499856

4.115
Last change on this file since c499856 was c499856, checked in by Chris Johns <chrisj@…>, on Mar 20, 2014 at 9:10:47 PM

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 854 bytes
RevLine 
[54e34e7]1/*  Task_1
2 *
3 *  This routine serves as a test task.  It verifies the basic task
4 *  switching capabilities of the executive.
5 *
6 *  Input parameters:
7 *    argument - task argument
8 *
9 *  Output parameters:  NONE
10 *
[08311cc3]11 *  COPYRIGHT (c) 1989-1999.
[54e34e7]12 *  On-Line Applications Research Corporation (OAR).
13 *
[98e4ebf]14 *  The license and distribution terms for this file may be
15 *  found in the file LICENSE in this distribution or at
[c499856]16 *  http://www.rtems.org/license/LICENSE.
[54e34e7]17 */
18
[cafefbf]19#ifdef HAVE_CONFIG_H
20#include "config.h"
21#endif
22
[54e34e7]23#include "system.h"
24#include <time.h>
25#include <sched.h>
26
27void *Task_1(
28  void *argument
29)
30{
[76e9a52f]31  /*
32   * Detach ourselves so we don't wait for a join that won't happen.
33   */
34  pthread_detach( pthread_self() );
35
[54e34e7]36  puts( "Task_1: exitting" );
37  pthread_exit( NULL );
38
39  return NULL; /* just so the compiler thinks we returned something */
40}
Note: See TracBrowser for help on using the repository browser.