Navigation
API > API/Runtime > API/Runtime/Core
| Name | TLockFreeFixedSizeAllocator_TLSCacheBase |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/LockFreeFixedSizeAllocator.h |
| Include Path | #include "Containers/LockFreeFixedSizeAllocator.h" |
Syntax
template<int32 SIZE, typename TBundleRecycler, typename TTrackingCounter>
class TLockFreeFixedSizeAllocator_TLSCacheBase : public FNoncopyable
Inheritance Hierarchy
- FNoncopyable → TLockFreeFixedSizeAllocator_TLSCacheBase
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TLockFreeFixedSizeAllocator_TLSCacheBase() |
Containers/LockFreeFixedSizeAllocator.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TLockFreeFixedSizeAllocator_TLSCacheBase() |
Destructor, leaks all of the memory | Containers/LockFreeFixedSizeAllocator.h |
Structs
| Name | Remarks |
|---|---|
| FThreadLocalCache | Struct for the TLS cache. |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| GlobalFreeListBundles | TBundleRecycler | Lock free list of free memory blocks, these are all linked into a bundle of NUM_PER_BUNDLE. | Containers/LockFreeFixedSizeAllocator.h | |
| NumFree | TTrackingCounter | Total number of blocks in the free list. | Containers/LockFreeFixedSizeAllocator.h | |
| NumUsed | TTrackingCounter | Total number of blocks outstanding and not in the free list. | Containers/LockFreeFixedSizeAllocator.h | |
| TlsSlot | uint32 | Slot for TLS struct. | Containers/LockFreeFixedSizeAllocator.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void * Allocate () |
Allocates a memory block of size SIZE. | Containers/LockFreeFixedSizeAllocator.h | |
void Free
(
void* Item |
Puts a memory block previously obtained from Allocate() back on the free list for future use. | Containers/LockFreeFixedSizeAllocator.h | |
const TTrackingCounter & GetNumFree () |
Gets the number of allocated memory blocks that are currently unused. | Containers/LockFreeFixedSizeAllocator.h | |
const TTrackingCounter & GetNumUsed () |
Gets the number of allocated memory blocks that are currently in use. | Containers/LockFreeFixedSizeAllocator.h |