2 #include "AudioConfig.h"
3 #include "AudioTools/CoreAudio/AudioLogger.h"
5 #ifdef USE_STD_CONCURRENCY
10 # include "freertos/FreeRTOS.h"
11 # include "freertos/semphr.h"
13 # include "FreeRTOS.h"
27 virtual void lock() {}
28 virtual void unlock() {}
31 #if defined(USE_STD_CONCURRENCY)
41 void lock()
override { std_mutex.lock(); }
42 void unlock()
override { std_mutex.unlock(); }
61 xSemaphore = xSemaphoreCreateBinary();
62 xSemaphoreGive(xSemaphore);
66 vSemaphoreDelete(xSemaphore);
68 void lock()
override {
70 xSemaphoreTake(xSemaphore, portMAX_DELAY);
72 void unlock()
override {
74 xSemaphoreGive(xSemaphore);
78 SemaphoreHandle_t xSemaphore = NULL;
109 Mutex *p_mutex =
nullptr;