Semaphore & vTaskDelete

Posted by bert0r on March 1, 2012
Hi there,

i have question about Semaphore & vTaskDelete.

What happens with a semaphore that is taken by a Task which is deleted before it releases the semaphore again ? Will it be released automatically ?

thank you very much

RE: Semaphore & vTaskDelete

Posted by Richard on March 1, 2012
No - it will not be released automatically. You have to be careful that a task does not use a semaphore that has been deleted.

Regards.