Dear all,
I am reading "Tinyos Programming". I am puzzled with "async" and "sync". The
following is a snatch.
*commandresult_tSendMsg.send...{*
*if(!state){*
*state=TRUE;*
*//sendapacket*
*returnSUCCESS;*
*}*
*returnFAIL;*
*}*
* *
*If this command were async, then it's possible between the
conditional“if(!state)”and the assignment “state=TRUE”that an other
component jumps in and tries to send as well.*
**
I think if the command is sync, it is also possible by interrupt. Right?
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help