![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Public Member Functions | |
| TDynamicUniqueLock< FWordMutex > | LockDynamic () |
| void | Lock () |
| void | Unlock () |
| bool | IsEmpty () const |
| void | Enqueue (FThread *Thread) |
| FThread * | Dequeue () |
| template<typename VisitorType > | |
| void | DequeueIf (VisitorType &&Visitor) |
| FBucket ()=default | |
| ~FBucket ()=default | |
A bucket in the hash table keyed by memory address.
Buckets must be locked to access the list of waiting threads. Buckets are aligned to a cache line to reduce false sharing.
|
default |
|
default |
| FThread * UE::ParkingLot::Private::FBucket::Dequeue | ( | ) |
| void UE::ParkingLot::Private::FBucket::DequeueIf | ( | VisitorType && | Visitor | ) |
Dequeues threads based on a visitor.
Visitor signature is EQueueAction (FThread&). Visitor is called for every thread in the bucket, from head to tail. Threads are dequeued if the returned action contains Remove. Visiting stops if the returned action contains Stop.
|
inline |
|
inline |
|
inline |
|
inline |