FreeRTOS - Design Patterns for RTOS
What is wrong with this FreeRTOS design pattern code snippet?
void TaskA(void *pvParameters) {
xSemaphoreTake(mutex, 0);
// critical section code
xSemaphoreGive(mutex);
vTaskDelete(NULL);
}