Changeset 0f88857 in rtems for c/src/tests/itrontests/itrontask02/dormant.c
- Timestamp:
- 11/15/99 21:19:58 (23 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 06380cfe
- Parents:
- cb193710
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
c/src/tests/itrontests/itrontask02/dormant.c
rcb193710 r0f88857 1 /* Preempt_task1 /* Dormant 2 2 * 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. 4 5 * 5 6 * Input parameters: … … 18 19 * $Id$ 19 20 */ 21 20 22 #include <assert.h> 21 23 #include "system.h" 22 24 23 void Preempt_task()25 void Dormant_task() 24 26 { 25 puts( " PREEMPT - ext_tsk - going to DORMANT state" );27 puts( "DORMANT - ext_tsk - going to DORMANT state" ); 26 28 ext_tsk( ); 27 29 28 puts( " ext_tsk of RTEMS_PREEMPT" );30 puts( "ERROR==>ext_tsk of DORMANT returned" ); 29 31 assert(0); 30 32 } 33 34 35 void 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.