|
ATLAS Offline Software
|
Go to the documentation of this file.
19 #ifndef ATHALLOCATORS_LOCKEDALLOCATOR_H
20 #define ATHALLOCATORS_LOCKEDALLOCATOR_H
26 class ArenaAllocatorBase;
89 #endif // not ATHALLOCATORS_LOCKEDALLOCATOR_H
const ArenaAllocatorBase * get() const
Return the underlying pointer.
ArenaAllocatorBase * operator->()
Dereference the pointer.
std::unique_lock< std::mutex > m_lock
The lock for the allocator.
LockedAllocator(ArenaAllocatorBase *alloc, std::mutex &mutex)
Constructor.
ArenaAllocatorBase & operator*()
Dereference the pointer.
Common base class for arena allocator classes.
A pointer type that holds a lock on an allocator object.
ArenaAllocatorBase * get()
Return the underlying pointer.
ArenaAllocatorBase * m_alloc
The allocator to which we point.