Module |
|
Header |
/Engine/Source/Developer/DerivedDataCache/Public/DerivedDataRequestOwner.h |
Include |
#include "DerivedDataRequestOwner.h" |
class IRequestOwner
A request owner manages requests throughout their execution.
Requests are expected to call Begin when created, and End when finished, with their completion callback and arguments passed to End when possible. If a request needs to invoke more than one callback, have a request barrier in scope when executing callbacks to ensure that new requests are prioritized properly when the priority is being changed from another thread.
The owner is responsible for keeping itself alive while it has active requests or barriers.
Name | Description | ||
---|---|---|---|
|
Begin ( |
Begin tracking for the request. |
|
|
BeginBarrier ( |
See FRequestBarrier. |
|
|
TRefCountPtr... |
End ( |
End tracking for the request. |
|
TRefCountPtr... |
End ( |
End tracking of the request. |
|
EndBarrier ( |
||
|
GetPriority() |
Returns the priority that new requests are expected to inherit. |
|
|
IsCanceled() |
Returns whether the owner has been canceled, which new requests are expected to check. |