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
22class MutexRTOS : public MutexBase {
23public:
28 virtual ~MutexRTOS() {
30 }
31 void lock() override {
33 }
34 void unlock() override {
36 }
37
38protected:
40};
41
68
69
72using Mutex = MutexRTOS;
73
74}
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:35
Mutex implemntation using FreeRTOS.
Definition MutexRTOS.h:22
SemaphoreHandle_t xSemaphore
Definition MutexRTOS.h:39
void unlock() override
Definition MutexRTOS.h:34
virtual ~MutexRTOS()
Definition MutexRTOS.h:28
MutexRTOS()
Definition MutexRTOS.h:24
void lock() override
Definition MutexRTOS.h:31
Recursive Mutex implemntation using FreeRTOS.
Definition MutexRTOS.h:49
virtual ~MutexRecursiveRTOS()
Definition MutexRTOS.h:55
SemaphoreHandle_t xSemaphore
Definition MutexRTOS.h:66
void unlock() override
Definition MutexRTOS.h:61
MutexRecursiveRTOS()
Definition MutexRTOS.h:51
void lock() override
Definition MutexRTOS.h:58
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:512