Ákos Maróy a écrit :
Aurelien,
AFAK the solution is to post a task...
thanks :)
I would recommend the reading of TinyOS Programming Manual
(http://www.tinyos.net/tinyos-2.x/doc/pdf/tinyos-programming.pdf) from
P. Lewis section: 4.5 "Concurrency" it very clearly explains
concurrency, sync, async, atomic etc ... issues
frankly, I read through it, but maybe I'm too dump to come to a
conclusion from the task :(
Well i was thinking at this part of the text:
"All interrupt handlers are async, and so they cannot include any sync
functions in their call graph. The one and only way that an interrupt
handler can execute a sync function is to post a task. A task post is an
async operation, while a task running is sync."
and events such as "async event void Alarm.fired() " is actually an
interrupt handler (or called from an interrupt handler... )
Cheers,
Aurélien
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help