Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
LockIfExists Class Reference

Conditional OSMutexLock which can handle a nullptr as mutex (in which case it does not lock anything). More...

Public Member Functions

 LockIfExists (OSMutex *mu)
 

Private Attributes

OSMutexmu_
 

Detailed Description

Conditional OSMutexLock which can handle a nullptr as mutex (in which case it does not lock anything).

Definition at line 52 of file SPIFlash.cxx.

Constructor & Destructor Documentation

◆ LockIfExists()

LockIfExists::LockIfExists ( OSMutex mu)
inline

Definition at line 55 of file SPIFlash.cxx.

◆ ~LockIfExists()

LockIfExists::~LockIfExists ( )
inline

Definition at line 64 of file SPIFlash.cxx.

Member Data Documentation

◆ mu_

OSMutex* LockIfExists::mu_
private

Definition at line 73 of file SPIFlash.cxx.


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