arduino-audio-tools
Public Member Functions | Protected Attributes | List of all members
LockGuard Class Reference

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

Mutexp_mutex = nullptr
 

Detailed Description

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.

Author
Phil Schatzmann

The documentation for this class was generated from the following file: