TLockFreeFixedSizeAllocator_TLSCacheBase

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/LockFreeFixedSizeAllocator.h

Include

#include "Containers/LockFreeFixedSizeAllocator.h"

Syntax

template<int32 SIZE, typename TBundleRecycler, typename TTrackingCounter, bool AllowDisablingOfTrim>
class TLockFreeFixedSizeAllocator_TLSCacheBase : public FNoncopyable

Constructors

Destructors

Name Description

Public function

~TLockFreeFixedSizeAllocator_TLSCacheBase()

Destructor, leaks all of the memory

Functions

Name Description

Public function

void *

 

Allocate()

Allocates a memory block of size SIZE.

Public function

void

 

Free

(
    void* Item
)

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

Public function Const

const TTrack...

 

GetNumFree()

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

Public function Const

const TTrack...

 

GetNumUsed()

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

Constants

Name

Description

NUM_PER_BUNDLE

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss