| TLockFreeFixedSizeAllocator
|
Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Containers/LockFreeFixedSizeAllocator.h |
Include |
#include "Containers/LockFreeFixedSizeAllocator.h" |
Thread safe, lock free pooling allocator of fixed size blocks that never returns free space until program shutdown. alignment isn't handled, assumes FMemory::Malloc will work
Name | Description | |
---|---|---|
|
~TLockFreeFixedSizeAllocator() |
Destructor, returns all memory via FMemory::Free |
Name | Description | ||
---|---|---|---|
|
void * |
Allocate() |
Allocates a memory block of size SIZE. |
|
Free ( |
Puts a memory block previously obtained from Allocate() back on the free list for future use. |
|
|
const TTrack... |
GetNumFree() |
Gets the number of allocated memory blocks that are currently unused. |
|
const TTrack... |
GetNumUsed() |
Gets the number of allocated memory blocks that are currently in use. |
|
Trim() |
Returns all free memory to the heap |