2#include "AudioToolsConfig.h"
3#include "AudioTools/Concurrency/Mutex.h"
6# include "freertos/FreeRTOS.h"
7# include "freertos/semphr.h"
24 xSemaphore = xSemaphoreCreateBinary();
25 xSemaphoreGive(xSemaphore);
28 vSemaphoreDelete(xSemaphore);
30 void lock()
override {
31 xSemaphoreTake(xSemaphore, portMAX_DELAY);
33 void unlock()
override {
34 xSemaphoreGive(xSemaphore);
38 SemaphoreHandle_t xSemaphore = NULL;