arduino-audio-tools
Loading...
Searching...
No Matches
src
AudioTools
Concurrency
Desktop
Mutex.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
AudioToolsConfig.h
"
4
#include "
AudioTools/Concurrency/Mutex.h
"
5
#include <mutex>
6
7
namespace
audio_tools
{
8
9
16
class
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
31
class
StdRecursiveMutex
:
public
MutexBase
{
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
42
using
Mutex
=
StdMutex
;
43
44
45
}
// namespace audio_tools
AudioToolsConfig.h
Mutex.h
audio_tools::MutexBase
Empty Mutex implementation which does nothing.
Definition
Mutex.h:15
audio_tools::StdMutex
Mutex implemntation based on std::mutex.
Definition
Mutex.h:16
audio_tools::StdMutex::unlock
void unlock() override
Definition
Mutex.h:19
audio_tools::StdMutex::std_mutex
std::mutex std_mutex
Definition
Mutex.h:22
audio_tools::StdMutex::lock
void lock() override
Definition
Mutex.h:18
audio_tools::StdRecursiveMutex
Mutex implemntation based on std::mutex.
Definition
Mutex.h:31
audio_tools::StdRecursiveMutex::unlock
void unlock() override
Definition
Mutex.h:34
audio_tools::StdRecursiveMutex::std_mutex
std::recursive_mutex std_mutex
Definition
Mutex.h:37
audio_tools::StdRecursiveMutex::lock
void lock() override
Definition
Mutex.h:33
audio_tools
Generic Implementation of sound input and output for desktop environments using portaudio.
Definition
LMSEchoCancellationStream.h:6
Generated by
1.9.8