arduino-audio-tools
Loading...
Searching...
No Matches
MutexRTOS.h
Go to the documentation of this file.
1#pragma once
2#include "AudioToolsConfig.h"
4
5#ifdef ESP32
6# include "freertos/FreeRTOS.h"
7# include "freertos/semphr.h"
8#elif defined(__linux__)
9#else
10# include "FreeRTOS.h"
11# include "semphr.h"
12#endif
13
14namespace audio_tools {
15
25class MutexRTOS : public MutexBase {
26public:
31 virtual ~MutexRTOS() {
33 }
34 void lock() override {
36 }
37 void unlock() override {
39 }
40
41protected:
43};
44
71
72
75using Mutex = MutexRTOS;
76
77}
#define portMAX_DELAY
Definition QueueZephyr.h:14
Empty Mutex implementation which does nothing.
Definition Mutex.h:18
Mutex API for non IRQ mutual exclusion between cores. Mutexes are application level locks usually use...
Definition MutexRP2040.h:38
Mutex implemntation using FreeRTOS.
Definition MutexRTOS.h:25
SemaphoreHandle_t xSemaphore
Definition MutexRTOS.h:42
void unlock() override
Definition MutexRTOS.h:37
virtual ~MutexRTOS()
Definition MutexRTOS.h:31
MutexRTOS()
Definition MutexRTOS.h:27
void lock() override
Definition MutexRTOS.h:34
Recursive Mutex implemntation using FreeRTOS.
Definition MutexRTOS.h:52
virtual ~MutexRecursiveRTOS()
Definition MutexRTOS.h:58
SemaphoreHandle_t xSemaphore
Definition MutexRTOS.h:69
void unlock() override
Definition MutexRTOS.h:64
MutexRecursiveRTOS()
Definition MutexRTOS.h:54
void lock() override
Definition MutexRTOS.h:61
Generic Implementation of sound input and output for desktop environments using portaudio.
Definition AudioCodecsBase.h:10
size_t writeData(Print *p_out, T *data, int samples, int maxSamples=512)
Definition AudioTypes.h:508