I am probably wrong (and hopefully someone will correct me) but as far as I
understand it.I think all code continues to run in sequence across interfaces
until it ends. If a new task is posted it wont run until the current task has
completed .so in your example below DoSomething(10) will run then
DoSomething(20) but what they do with it if a new task is posted wont
e.gevent void MyInterface.DoSomething(int n){ dbg("n is %i",n); c=n; post
someTask();}task void someTask(){ dbg("c is %i",c);}
you will get out: n is 10n is 20...c is 20
From: [email protected]
Date: Fri, 26 Feb 2010 12:42:54 +0200
To: [email protected]
CC: [email protected]
Subject: Re: [Tinyos-help] Is a new interface created as a split-phase
Hmm... That makes sense.
But how can I know whether this is a split-phase or a blocking interface?
Because if I need something like this:
external int var;
event void Boot.booted(){
var = 10;
call MyInterface.DoSomething(var);
var = 20;
call MyInterface.DoSomething(var);
...
}
Will it copy the correct values or use var=20 in both cases?
Actually I don't know the answer regarding the Timer interface either...
Arik
On Fri, Feb 26, 2010 at 10:59, AKHILA S RAO <[email protected]> wrote:
just as you can do
event Boot.booted()
{ call Timer.startOneShot(55);
call Timer.startOneShot(66);
}
i think you can do what you mentioned as well
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
Best Regards,
Arik Sapojnik
_________________________________________________________________
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help