| FNoncopyable
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Containers/LockFreeFixedSizeAllocator.h |
Include |
#include "Containers/LockFreeFixedSizeAllocator.h" |
template<class T, int TPaddingForCacheContention, bool AllowDisablingOfTrim>
class TLockFreeClassAllocator_TLSCache : private TLockFreeFixedSizeAllocator_TLSCache< sizeof(T), TPaddingForCacheContention, FNoopCounter, AllowDisablingOfTrim >
Thread safe, lock free pooling allocator of memory for instances of T.
Never returns free space until program shutdown.
Name | Description | ||
---|---|---|---|
|
void * |
Allocate() |
Returns a memory block of size sizeof(T). |
|
Free ( |
Calls a destructor on Item and returns the memory to the free list for recycling. |
|
|
T * |
New() |
Returns a new T using the default constructor. |