Ignore:
Timestamp:
11/15/99 21:19:58 (23 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
06380cfe
Parents:
cb193710
Message:

+ Changed preempt routine into two dummy tasks one that is in dormant

state and one that is in non-dormant state.

+ Increased the priority of the Init task to force the dummy tasks to

run first.

+ Added calls to ref_tsk to verify the state of the dummy tasks and

test ref_tsk.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • c/src/tests/itrontests/itrontask02/dormant.c

    rcb193710 r0f88857  
    1 /*  Preempt_task
     1/*  Dormant
    22 *
    3  *  This routine serves as a test task.  It verifies the task manager.
     3 *  This routine serves as two test tasks.
     4 *  It has one dormant and one sleeping tasks.
    45 *
    56 *  Input parameters:
     
    1819 *  $Id$
    1920 */
     21
    2022#include <assert.h>
    2123#include "system.h"
    2224
    23 void Preempt_task()
     25void Dormant_task()
    2426{
    25   puts( "PREEMPT - ext_tsk - going to DORMANT state" );
     27  puts( "DORMANT - ext_tsk - going to DORMANT state" );
    2628  ext_tsk( );
    2729
    28   puts( "ext_tsk of RTEMS_PREEMPT" );
     30  puts( "ERROR==>ext_tsk of DORMANT returned" );
    2931  assert(0);
    3032}
     33
     34
     35void Non_Dormant_task()
     36{
     37  ER       status;
     38
     39  while (TRUE) {
     40    puts( "NON-DORMANT - Sleep for 2 minutes" );
     41    status = rtems_task_wake_after( 120*TICKS_PER_SECOND );
     42    directive_failed( status, "rtems_task_wake_after" );
     43  }
     44
     45
Note: See TracChangeset for help on using the changeset viewer.