RTEMS Logo

RTEMS 4.7.99.2 On-Line Library


Task Manager Delaying the Currently Executing Task

PREV UP NEXT Bookshelf RTEMS Ada User's Guide

5.3.5: Delaying the Currently Executing Task

The rtems.task_wake_after directive creates a sleep timer which allows a task to go to sleep for a specified interval. The task is blocked until the delay interval has elapsed, at which time the task is unblocked. A task calling the rtems.task_wake_after directive with a delay interval of RTEMS.YIELD_PROCESSOR ticks will yield the processor to any other ready task of equal or greater priority and remain ready to execute.

The rtems.task_wake_when directive creates a sleep timer which allows a task to go to sleep until a specified date and time. The calling task is blocked until the specified date and time has occurred, at which time the task is unblocked.


PREV UP NEXT Bookshelf RTEMS Ada User's Guide

Copyright © 1988-2004 OAR Corporation