Hi Ranal, Receive is a blocking call. And, the thread is unblocked when the radio receives an incoming message. Now, if the thread does not want to wait indefinitely for any incoming message, it can also use the timer to unblock itself.
Mike On Sun, 23 Jan 2011 21:16:52 -0500, ranal fernando <[email protected]> wrote: > Hi all, > > > can someone tell me what is the reason for having a timeout in the receive > interface in TOSThreads? > > like if(call BlockingReceive0.receive(&m0, 5000) == SUCCESS) {} Here > 5000 (in millisecs) is a timeout. > > Thanks in advance for your valuable help. > > > Ranal _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
