make thread safe
for critical areas: xSemaphoreTake(mutex_audio, portMAX_DELAY); xSemaphoreGive(mutex_audio); for areas that can be called by their own thread xSemaphoreTakeRecursive(mutex_audio, portMAX_DELAY); xSemaphoreGiveRecursive(mutex_audio);
Showing
Please register or sign in to comment