[Tinyos-help] How a event can post a task???
Frederic Beaulieu
Frederic.Beaulieu at trilliantinc.com
Wed May 14 13:22:00 PDT 2008
I'm just looking in the scheduler task loop and I wonder how an event generated by an interrupt can post a task if the while loop waiting for a task is in atomic section (see code below)??? It seems very strange.
command void Scheduler.taskLoop()
{
for (;;)
{
uint8_t nextTask;
atomic
{
while ((nextTask = popTask()) == NO_TASK)
{
call McuSleep.sleep();
}
}
signal TaskBasic.runTask[nextTask]();
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080514/612b235b/attachment.htm
More information about the Tinyos-help
mailing list