arduino-audio-tools
|
RAII implementaion using a Mutex: Only a few microcontrollers provide lock guards, so I decided to roll my own solution where we can just use a dummy Mutex implementation that does nothing for the cases where this is not needed. More...
#include <LockGuard.h>
Public Member Functions | |
LockGuard (Mutex &mutex) | |
LockGuard (Mutex *mutex) | |
Protected Attributes | |
Mutex * | p_mutex = nullptr |
RAII implementaion using a Mutex: Only a few microcontrollers provide lock guards, so I decided to roll my own solution where we can just use a dummy Mutex implementation that does nothing for the cases where this is not needed.