Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Async
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Async/ParkingLot.h |
| Include | #include "Async/ParkingLot.h" |
namespace UE
{
namespace ParkingLot
{
template<typename CanWaitType, typename BeforeWaitType>
FWaitState UE&58;&58;ParkingLot&58;&58;WaitUntil
&40;
const void &42; Address,
CanWaitType && CanWait,
BeforeWaitType && BeforeWait,
FMonotonicTimePoint WaitTime
&41;
}
}
Remarks
Queue the calling thread to wait if CanWait returns true. BeforeWait is only called if CanWait returns true.
Parameters
| Name | Description |
|---|---|
| Address | Address to use as the key for the queue. The same address is used to wake the thread. |
| CanWait | Function called while the queue is locked. A return of false cancels the wait. |
| BeforeWait | Function called after the queue is unlocked and before the thread waits. |
| WaitTime | Absolute time after which waiting is automatically canceled and the thread wakes. |