Two and more tasks with same TaskHandle_t

vitpetrik wrote on Saturday, April 06, 2019:

I need to suspend more tasks at once so I thought having same taskhandle with all those tasks would be correct solution. The suspending and resuming works great for one task, but with more tasks it doesn’t work at all.
Is it possible to do it like this, or do I have to find different solution.
Thank you for your help

richarddamon wrote on Saturday, April 06, 2019:

You do not assign the task handle, but FreeRTOS will fill into your variable the value of the created tasks handle, which is the address of its Task Control Block. There is no way to have two task use the same Task Control Block. Normally using Suspend and Resume is the wrong action, Normally tasks will block on a Semaphore, Queue, Event, etc to wait for them to be told to do their next action.