24 const std::thread::id
id = std::this_thread::get_id();
25 std::lock_guard< std::mutex > lock(
m_mutex );
37 std::lock_guard< std::mutex > lock(
m_mutex );
Define macros for attributes used to control the static checker.
#define ATLAS_THREAD_SAFE
std::map< std::thread::id, ReadStats > m_stats
Objects describing the file access pattern, per thread.
ReadStats & stats()
Access the object belonging to the current thread.
AthContainers_detail::thread_specific_ptr< ReadStats > m_ptr
Thread specific pointer to the ReadStats object of the current thread.
ReadStats merged() const
Access the statistics object, merging information from all threads.
IOStats()
The constructor of the object is made private.
std::mutex m_mutex
Mutex for accessing the read statistics.
static IOStats & instance()
Singleton object accessor.
Class describing the access statistics of a collection of branches.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.