AnsweredAssumed Answered

How can I explicitly perform a task switch?

Question asked by panpwr on Jan 13, 2013
Latest reply on Jan 14, 2013 by Martin Latal

I have few tasks run in parallel, and I want to let the MQX OS manage the task queue according to task's priorities, without my interference.

Thus, I do not want task A to block itself (by using _task_block), come back to life only when  Task B will set it ready (by using _task_ready).

 

Currently, when I wish to switch tasks, I use _time_delay(1) - which is pretty bad programming practice, since this task will wake up after a whole millisecond at the minimum, and not when it is needed.

    

So, How can I explicitly perform a task switch?

 

Thanks,

Lior.

Outcomes