19#ifndef ATHALLOCATORS_LOCKEDALLOCATOR_H
20#define ATHALLOCATORS_LOCKEDALLOCATOR_H
Common base class for arena allocator classes.
ArenaAllocatorBase * m_alloc
The allocator to which we point.
std::unique_lock< std::mutex > m_lock
The lock for the allocator.
ArenaAllocatorBase & operator*()
Dereference the pointer.
ArenaAllocatorBase * get()
Return the underlying pointer.
LockedAllocator(ArenaAllocatorBase *alloc, std::mutex &mutex)
Constructor.
ArenaAllocatorBase * operator->()
Dereference the pointer.
const ArenaAllocatorBase * get() const
Return the underlying pointer.