2#include "AudioToolsConfig.h"
3#include "AudioTools/Concurrency/Mutex.h"
6# include "freertos/FreeRTOS.h"
7# include "freertos/semphr.h"
8#elif defined(__linux__)
25 xSemaphore = xSemaphoreCreateBinary();
26 xSemaphoreGive(xSemaphore);
29 vSemaphoreDelete(xSemaphore);
31 void lock()
override {
32 xSemaphoreTake(xSemaphore, portMAX_DELAY);
34 void unlock()
override {
35 xSemaphoreGive(xSemaphore);
39 SemaphoreHandle_t xSemaphore = NULL;