UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TLockFreeFixedSizeAllocator_TLSCacheBase< SIZE, TBundleRecycler, TTrackingCounter > Class Template Reference

#include <LockFreeFixedSizeAllocator.h>

+ Inheritance diagram for TLockFreeFixedSizeAllocator_TLSCacheBase< SIZE, TBundleRecycler, TTrackingCounter >:

Public Member Functions

 TLockFreeFixedSizeAllocator_TLSCacheBase ()
 
 ~TLockFreeFixedSizeAllocator_TLSCacheBase ()
 
voidAllocate ()
 
void Free (void *Item)
 
const TTrackingCounterGetNumUsed () const
 
const TTrackingCounterGetNumFree () const
 

Additional Inherited Members

- Protected Member Functions inherited from FNoncopyable
 FNoncopyable ()
 
 ~FNoncopyable ()
 

Constructor & Destructor Documentation

◆ TLockFreeFixedSizeAllocator_TLSCacheBase()

◆ ~TLockFreeFixedSizeAllocator_TLSCacheBase()

Member Function Documentation

◆ Allocate()

Allocates a memory block of size SIZE.

Returns
Pointer to the allocated memory.
See also
Free

◆ Free()

Puts a memory block previously obtained from Allocate() back on the free list for future use.

Parameters
ItemThe item to free.
See also
Allocate

◆ GetNumFree()

Gets the number of allocated memory blocks that are currently unused.

Returns
Number of unused memory blocks.
See also
GetNumUsed

◆ GetNumUsed()

Gets the number of allocated memory blocks that are currently in use.

Returns
Number of used memory blocks.
See also
GetNumFree

The documentation for this class was generated from the following file: