vTaskDelete a task that is blocked by a semaphore or queue

Can my task be deleted? What happens to my semaphore and queue?

Yes, you can delete a task that is blocked on a semaphore or a queue. The task will be removed from the list of tasks blocked on that semaphore/queue, and the semaphore/queue will remain.

1 Like