UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::ParkingLot::Private::FTable Class Referencefinal

Static Public Member Functions

static FBucketFindOrCreateBucket (const void *Address, TDynamicUniqueLock< FWordMutex > &OutLock)
 
static FBucketFindBucket (const void *Address, TDynamicUniqueLock< FWordMutex > &OutLock)
 
static void Reserve (uint32 ThreadCount)
 

Detailed Description

A hash table of queues of waiting threads keyed by memory address.

Tables are never freed. The size of the table is bounded by the maximum number of threads that exist concurrently and have used the wait queue. The table grows by powers of two, which means that the maximum size leaked is less than the maximum size that the table ever grows to. Table leaks are also limited in size because a table is an array of bucket pointers, and the buckets are reused when the table grows.

Member Function Documentation

◆ FindBucket()

FBucket * UE::ParkingLot::Private::FTable::FindBucket ( const void Address,
TDynamicUniqueLock< FWordMutex > &  OutLock 
)
static

Find and lock the bucket for the memory address. Returns null if the bucket was not created.

◆ FindOrCreateBucket()

FBucket & UE::ParkingLot::Private::FTable::FindOrCreateBucket ( const void Address,
TDynamicUniqueLock< FWordMutex > &  OutLock 
)
static

Find or create, and lock, the bucket for the memory address.

◆ Reserve()

void UE::ParkingLot::Private::FTable::Reserve ( uint32  ThreadCount)
static

Reserve memory for the table to handle at least ThreadCount waiting threads.


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