[Tinyos-beta-commits]
CVS: tinyos-1.x/beta/teps/txt tep106.txt, 1.6, 1.7
Phil Levis
scipio at users.sourceforge.net
Wed Jan 19 17:30:35 PST 2005
- Previous message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/teps/txt tep107.txt, NONE, 1.1
- Next message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/Deluge DelugeC.nc, 1.3,
1.4 DelugeM.nc, 1.5, 1.6 DelugeMetadataM.nc, 1.6,
1.7 DelugePageTransferC.nc, 1.3, 1.4 DelugeStorageC.nc, 1.4,
1.5 DelugeStorageM.nc, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/tinyos/tinyos-1.x/beta/teps/txt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6066
Modified Files:
tep106.txt
Log Message:
Added new runNextTask() semantics (with boolean parameter) to cover
the two cases of task queue clearing in initialization and task
queue processing in normal operation.
Index: tep106.txt
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/teps/txt/tep106.txt,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** tep106.txt 19 Jan 2005 23:36:26 -0000 1.6
--- tep106.txt 20 Jan 2005 01:30:32 -0000 1.7
***************
*** 182,192 ****
| ``interface SchedulerRun {``
| ``command void init();``
! | ``command void runNextTask();``
| ``}``
The init() command initializes the task queue and scheduler data
structures. runNextTask() MUST run to completion whatever task the
! scheduler's policy decides is the next one. If there are no tasks
! to execute, runNextTask() MAY put the CPU to sleep.
The TaskBasic interface is this:
--- 182,198 ----
| ``interface SchedulerRun {``
| ``command void init();``
! | ``command bool runNextTask(bool sleep);``
| ``}``
The init() command initializes the task queue and scheduler data
structures. runNextTask() MUST run to completion whatever task the
! scheduler's policy decides is the next one: the return value indicates
! whether it ran a task. The bool parameter sleep indicates what the
! scheduler should do if there are no tasks to execute. If sleep is
! FALSE, then the command will return immediately with FALSE as a return
! value. If sleep is TRUE, then the command will not return until a task
! is executed, and SHOULD put the CPU to sleep until a new task arrives.
! Calls of runNextTask(FALSE) may return TRUE or FALSE; calls of
! runNextTask(TRUE) always return TRUE.
The TaskBasic interface is this:
- Previous message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/teps/txt tep107.txt, NONE, 1.1
- Next message: [Tinyos-beta-commits]
CVS: tinyos-1.x/beta/Deluge/Deluge DelugeC.nc, 1.3,
1.4 DelugeM.nc, 1.5, 1.6 DelugeMetadataM.nc, 1.6,
1.7 DelugePageTransferC.nc, 1.3, 1.4 DelugeStorageC.nc, 1.4,
1.5 DelugeStorageM.nc, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Tinyos-beta-commits
mailing list