Hi

when I post a task, for instance the example in the tutorials\BlinkTask\BlinkTaskC, post toggle() implicitly uses an instance of the TaskBasic interface, but in the SchedulerBasicP component,TaskBasic.postTask command has a parameter[uint8_t id]. But when I post the task toggle() in the BlinkTaskC, I didn't specify the parameter.
So I'm confused where the value of the parameter comes from? Thanks

module BlinkTaskC
{
........
}
implementation
{
  task void toggle()
  {
    call Leds.led0Toggle();
  }
...............
  event void Timer0.fired()
  {
    post toggle();
  }

}

module SchedulerBasicP {
        .........
}
implementation
{

  async command error_t TaskBasic.postTask[uint8_t id]()
  {
    atomic { return pushTask(id) ? SUCCESS : EBUSY; }
  }

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

Reply via email to