Hi,
I have one question about task and function....I understand that a task will not be interrupted by another task and hence executes until completion...Suppose I want to run a task a few times consecutively within a functionlike below
uint8_t g;
task void taskT()
{ .../*This task does something on a global variable "g"...}
void fucntion(uint8_t * x)
{
for(i=0;i<*x;i++)
post taskT();
}
I want to this task to run *x times uninterrupted....Can somebody advise if what I have done like above is safe and if not, any suggestion?...The function will be called under some "event"...and I cannot put taskT ( ) in another task so that it can run x times uninterrupted as the number of times "x" is a neccesary parameter...
Thanks for helping...
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
