Navigation
API > API/Developer > API/Developer/DerivedDataCache
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 | IRequestOwner |
| Type | class |
| Header File | /Engine/Source/Developer/DerivedDataCache/Public/DerivedDataRequestOwner.h |
| Include Path | #include "DerivedDataRequestOwner.h" |
Syntax
class IRequestOwner
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Begin tracking for the request. | DerivedDataRequestOwner.h | ||
UE_INTERNAL void BeginBarrier
(
const FRequestBarrier& Barrier |
See FRequestBarrier. | DerivedDataRequestOwner.h | |
| End tracking for the request. | DerivedDataRequestOwner.h | ||
| End tracking of the request. | DerivedDataRequestOwner.h | ||
UE_INTERNAL void EndBarrier
(
const FRequestBarrier& Barrier |
DerivedDataRequestOwner.h | ||
EPriority GetPriority() |
Returns the priority that new requests are expected to inherit. | DerivedDataRequestOwner.h | |
bool IsCanceled() |
Returns whether the owner has been canceled, which new requests are expected to check. | DerivedDataRequestOwner.h | |
void LaunchTask
(
const TCHAR* DebugName, |
Launches a task that executes the task body when scheduled. | DerivedDataRequestOwner.h |