$treeview $search $mathjax $extrastylesheet
artdaq_core  v3_06_01
$projectbrief
$projectbrief
$searchbox

TraceLock< MUTEX > Class Template 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>

List of all members.

Public Member Functions

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

Detailed Description

template<typename MUTEX = std::mutex>
class TraceLock< MUTEX >

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.


Constructor & Destructor Documentation

template<typename MUTEX = std::mutex>
TraceLock< MUTEX >::TraceLock ( MUTEX &  mutex,
int  level,
std::string const &  description 
) [inline]

Construct a TraceLock.

Parameters:
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.


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

Generated on 24 Aug 2020 for artdaq_core by  doxygen 1.6.1