artdaq_core  v3_04_13
TraceLock Class Reference

The TraceLock class allows a user to debug the acquisition and releasing of locks, by wrapping the unique_lock<std::mutex> API with TRACE calls. More...

#include <artdaq-core/Utilities/TraceLock.hh>

Public Member Functions

 TraceLock (std::mutex &mutex, int level, std::string description)
 Construct a TraceLock. More...
 
virtual ~TraceLock ()
 Release the TraceLock.
 

Detailed Description

The TraceLock class allows a user to debug the acquisition and releasing of locks, by wrapping the unique_lock<std::mutex> API with TRACE calls.

Definition at line 10 of file TraceLock.hh.

Constructor & Destructor Documentation

TraceLock::TraceLock ( std::mutex &  mutex,
int  level,
std::string  description 
)
inline

Construct a TraceLock.

Parameters
mutexMutex to hold lock on
levelLevel to TRACE (in the TraceLock TRACE_NAME)
descriptionDescription of lock (to be printed in TRACE calls)

Definition at line 31 of file TraceLock.hh.


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