If you suspend a task using _taskq_suspend can you explicitly ready it using _task_ready without problems and will it remove it from the queue.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

If you suspend a task using _taskq_suspend can you explicitly ready it using _task_ready without problems and will it remove it from the queue.

398 Views
tduncan
Contributor I

I have a task that will spend most of its time in a task queue with multiple tasks. At times I will need to ready this task explicitly not using taskq mechanisms b/c I do not want to wake up other tasks in the queue. Will _task_ready accomplish this. Events would almost work but I sometimes need to ready just the first task sometimes all of them. It seems events only work one way or the other.

0 Kudos
1 Reply

230 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Timothy,

I have used _task_block and task_ready functions for a similar purpose and I have no problems with it. The blocked task will remain blocked until you explicitly put the task in ready status on another task. Then the task that was blocked will return to the queue and will be excecuted depending of its priority.

Hope this helps!

Carlos

0 Kudos