[Tinyos-devel] AMSend.cancel command clarification request

Philip Levis pal at cs.stanford.edu
Thu Mar 15 10:51:54 PDT 2007


On Mar 15, 2007, at 10:21 AM, Andreas Koepke wrote:

> [...]
>> Hm. I'm wondering if signaling sendDone from the cancel() command is
>> problematic. It breaks one of the programming hints. The other option
>> is to keep a bitmask of which packets are cancelled, post a task, and
>> cycle through the mask.
>
> ok - done using the bit mask and the deferred signal via a task. I  
> know
> that at leats I have a problem with the race conditions introduced  
> when
> sendDone is signalled from inside a command. So I better not  
> confuse all
> other guys...

Yeah, if the implementer ran into trouble with it, chances are it  
isn't the most robust solution. :)

Core is going to talk about radio stacks next week or the week after  
(i.e., TEP 105). I'll try to remember to bring up the cancel()  
semantics.

Phil


More information about the Tinyos-devel mailing list