![]()  | 
  
    GM6000 Digital Heater Controller Build: 20 (Branch = develop)
    
   SDX-1330 
   | 
 
This concrete class provides a simple mechanism for providing mutex protection for a "scope block". More...
This concrete class provides a simple mechanism for providing mutex protection for a "scope block".
The class is instantiated as a local variable for the scope block it is meant to protected. When this object is created - it calls lock() on its mutex. When this object is destroyed - it calls unlock() on its mutex.
#include <Mutex.h>
Public Member Functions | |
| ScopeBlock (Mutex &mutex) noexcept | |
| Constructor. This will block until the mutex lock is acquired.   | |
| ~ScopeBlock () | |
| Destructor. This method releases ownership of the mutex.   | |
      
  | 
  inlinenoexcept | 
Constructor. This will block until the mutex lock is acquired.
      
  | 
  inline | 
Destructor. This method releases ownership of the mutex.