|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef AthenaMonitoringKernel_OHLockedHist_h
6 #define AthenaMonitoringKernel_OHLockedHist_h
74 if (m_mutex) m_mutex->lock();
83 if (m_mutex) m_mutex->unlock();
88 void*
operator new(size_t);
113 if (m_mutex) m_mutex->lock();
119 if (m_mutex) m_mutex->unlock();
124 void*
operator new(size_t);
Helper class to set histogram mutex.
oh_lock_histogram_mutex()=default
oh_lock_histogram_mutex(const oh_lock_histogram_mutex &)=delete
Lock to be used for thread unsafe histogram operations.
Scoped lock to be used for threaded histogram operations.
oh_lock_histogram_mutex & operator=(const oh_lock_histogram_mutex &)=delete
static std::mutex *m_mutex ATLAS_THREAD_SAFE
~oh_lock_histogram()
Unlock.
oh_lock_histogram(H *h)
Lock.
static void reset_histogram_mutex()
Reset (disable) histogram mutex.
H * operator->()
Access to histogram pointer.
~oh_scoped_lock_histogram()
Unlock.
oh_scoped_lock_histogram()
Lock.
static void set_histogram_mutex(std::mutex &mutex)
Set mutex to be used in oh_lock_histogram.
Define macros for attributes used to control the static checker.
~oh_lock_histogram_mutex()=default