Scoped lock to be used for threaded histogram operations.
More...
#include <OHLockedHist.h>
|
void * | operator new (size_t) |
| Do not allow dynamic allocation to avoid accidental deadlocks. More...
|
|
Scoped lock to be used for threaded histogram operations.
This is the scoped version of oh_lock_histogram in case you need to protect several histogram operations.
Example:
{
myhistogram->Fill(...);
myhistogram->LabelsDeflate();
}
Definition at line 108 of file OHLockedHist.h.
◆ oh_scoped_lock_histogram()
oh_scoped_lock_histogram::oh_scoped_lock_histogram |
( |
| ) |
|
|
inline |
Lock.
Definition at line 111 of file OHLockedHist.h.
113 if (m_mutex) m_mutex->lock();
◆ ~oh_scoped_lock_histogram()
oh_scoped_lock_histogram::~oh_scoped_lock_histogram |
( |
| ) |
|
|
inline |
Unlock.
Definition at line 117 of file OHLockedHist.h.
119 if (m_mutex) m_mutex->unlock();
◆ operator new()
void* oh_scoped_lock_histogram::operator new |
( |
size_t |
| ) |
|
|
private |
Do not allow dynamic allocation to avoid accidental deadlocks.
◆ reset_histogram_mutex()
static void oh_lock_histogram_mutex::reset_histogram_mutex |
( |
| ) |
|
|
inlinestaticinherited |
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 | ) |
|
|
inlinestaticinherited |
◆ ATLAS_THREAD_SAFE
std::mutex* m_mutex oh_lock_histogram_mutex::ATLAS_THREAD_SAFE |
|
staticprotectedinherited |
The documentation for this class was generated from the following file: