![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <LockFreeFixedSizeAllocator.h>
Public Member Functions | |
| TLockFreeFixedSizeAllocator () | |
| ~TLockFreeFixedSizeAllocator () | |
| void * | Allocate (int32 Alignment=MIN_ALIGNMENT) |
| void | Free (void *Item) |
| void | Trim () |
| TTrackingCounter::IntegerType | GetNumUsed () const |
| TTrackingCounter::IntegerType | GetNumFree () const |
Thread safe, lock free pooling allocator of fixed size blocks that only returns free space when the allocator is destroyed. Alignment isn't handled; assumes FMemory::Malloc will work.
|
inline |
|
inline |
Destructor, returns all memory via FMemory::Free
|
inline |
|
inline |
Puts a memory block previously obtained from Allocate() back on the free list for future use.
| Item | The item to free. |
|
inline |
Gets the number of allocated memory blocks that are currently unused.
|
inline |
Gets the number of allocated memory blocks that are currently in use.
|
inline |
Returns all free memory to the heap.