Typedef wrench::ThreadSafeObjectPoolAllocator

Typedef Documentation

template<typename T, typename Arena = HeapArena>
using wrench::ThreadSafeObjectPoolAllocator = Allocator<PoolAllocator<sizeof(T), std::max(alignof(T), alignof(ThreadSafeFreelist)), ThreadSafeFreelist>, Arena, AlignedHeapAllocator, VoidLock>

Defines an object pool allocator for objects of type T, which is thread-safe.

Template Parameters
  • T: The type of the objects to allocate from the pool.

  • Arena: The arena for the allocator.