Ákos Maróy a écrit :
I know this is a lame question, but I really tried to read up on it and can't find a simple answer.

The question is: from 'async' code, how do I call an 'normal' function? Now what I have is, in an Alarm.fired() (which is async), I call Read.read(). Fair enough, I get a warning for this. but how would I go about this safely?

AFAK the solution is to post a task...

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

Cheers,
Aurélien
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to