Ok,

I got that.
But what about the following:

What if SendMsg.send is called twice before sendTask is posted?
Or is this not possible?

I thought about something like this:

SendMsg.send1
SendMsg.send2   (buffer is overwritten)
sendTask1           (works with buffer2)
sendTask2           (works with buffer2)

I am not sure if the scheduler would ever make this exception occur.
In C++ on windows this could occur if you use 2 different threads.
In a single thread this couldn't occur. But I am not sure about TinyOS though.

Martin

sendTask is a 'task' and when a task is called(posted is the right word) the scheduler adds it to the list of task to be executed(but will not execute the task immediately). When there are no events to execute the task in the tasklist are executed in FIFO order.


_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to