[Tinyos-host-mote-wg] Re: [Tinyos-2.0wg] proposed Scheduler interface change

David Gay dgay42 at gmail.com
Sat Oct 15 11:40:13 PDT 2005


On 10/15/05, Cory Sharp <cory at moteiv.com> wrote:
> What does the optimized taskLoop() code look like?  - Cory

  command void Scheduler.taskLoop()
  {
    for (;;)
      {
	uint8_t nextTask;
	atomic
	    while ((nextTask = popTask()) == NO_TASK)
		__nesc_atomic_sleep();

	signal TaskBasic.runTask[nextTask]();
      }
  }

David

_______________________________________________
Tinyos-2.0wg mailing list
Tinyos-2.0wg at Mail.Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-2.0wg


More information about the Tinyos-host-mote-wg mailing list