ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
oh_lock_histogram_mutex Class Reference

Helper class to set histogram mutex. More...

#include <OHLockedHist.h>

Inheritance diagram for oh_lock_histogram_mutex:
Collaboration diagram for oh_lock_histogram_mutex:

Public Member Functions

 oh_lock_histogram_mutex ()=default
 
 ~oh_lock_histogram_mutex ()=default
 
 oh_lock_histogram_mutex (const oh_lock_histogram_mutex &)=delete
 
oh_lock_histogram_mutexoperator= (const oh_lock_histogram_mutex &)=delete
 

Static Public Member Functions

static void set_histogram_mutex (std::mutex &mutex)
 Set mutex to be used in oh_lock_histogram. More...
 
static void reset_histogram_mutex ()
 Reset (disable) histogram mutex. More...
 

Static Protected Attributes

static std::mutex *m_mutex ATLAS_THREAD_SAFE
 

Detailed Description

Helper class to set histogram mutex.

This is used by the HLT framework to set the reference to the OH mutex.

Definition at line 30 of file OHLockedHist.h.

Constructor & Destructor Documentation

◆ oh_lock_histogram_mutex() [1/2]

oh_lock_histogram_mutex::oh_lock_histogram_mutex ( )
default

◆ ~oh_lock_histogram_mutex()

oh_lock_histogram_mutex::~oh_lock_histogram_mutex ( )
default

◆ oh_lock_histogram_mutex() [2/2]

oh_lock_histogram_mutex::oh_lock_histogram_mutex ( const oh_lock_histogram_mutex )
delete

Member Function Documentation

◆ operator=()

oh_lock_histogram_mutex& oh_lock_histogram_mutex::operator= ( const oh_lock_histogram_mutex )
delete

◆ reset_histogram_mutex()

static void oh_lock_histogram_mutex::reset_histogram_mutex ( )
inlinestatic

Reset (disable) histogram mutex.

Definition at line 39 of file OHLockedHist.h.

39 { m_mutex = nullptr; }

◆ set_histogram_mutex()

static void oh_lock_histogram_mutex::set_histogram_mutex ( std::mutex &  mutex)
inlinestatic

Set mutex to be used in oh_lock_histogram.

Definition at line 36 of file OHLockedHist.h.

36 { m_mutex = &mutex; }

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::mutex* m_mutex oh_lock_histogram_mutex::ATLAS_THREAD_SAFE
staticprotected

Definition at line 46 of file OHLockedHist.h.


The documentation for this class was generated from the following file:
BeamSpot::mutex
std::mutex mutex
Definition: InDetBeamSpotVertex.cxx:18