|
artdaq_core
v3_08_01
|
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 (MUTEX &mutex, int level, std::string const &description) | |
| Construct a TraceLock. More... | |
| virtual | ~TraceLock () |
| Release the TraceLock. | |
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 11 of file TraceLock.hh.
|
inline |
Construct a TraceLock.
| mutex | Mutex to hold lock on |
| level | Level to TRACE (in the TraceLock TRACE_NAME) |
| description | Description of lock (to be printed in TRACE calls) |
Definition at line 20 of file TraceLock.hh.