arduino-audio-tools
Loading...
Searching...
No Matches
Mutex.h
Go to the documentation of this file.
1#pragma once
2
3#include "AudioToolsConfig.h"
5#include <mutex>
6
7namespace audio_tools {
8
9
16class StdMutex : public MutexBase {
17 public:
18 void lock() override { std_mutex.lock(); }
19 void unlock() override { std_mutex.unlock(); }
20
21 protected:
22 std::mutex std_mutex;
23};
24
32 public:
33 void lock() override { std_mutex.lock(); }
34 void unlock() override { std_mutex.unlock(); }
35
36 protected:
37 std::recursive_mutex std_mutex;
38};
39
43
44
45} // namespace audio_tools
Empty Mutex implementation which does nothing.
Definition Mutex.h:15
Mutex implemntation based on std::mutex.
Definition Mutex.h:16
void unlock() override
Definition Mutex.h:19
std::mutex std_mutex
Definition Mutex.h:22
void lock() override
Definition Mutex.h:18
Mutex implemntation based on std::mutex.
Definition Mutex.h:31
void unlock() override
Definition Mutex.h:34
std::recursive_mutex std_mutex
Definition Mutex.h:37
void lock() override
Definition Mutex.h:33
Generic Implementation of sound input and output for desktop environments using portaudio.
Definition LMSEchoCancellationStream.h:6