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.
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