Navigation
Unreal Engine C++ API Reference > Developer > DerivedDataCache
References
Module | DerivedDataCache |
Header | /Engine/Source/Developer/DerivedDataCache/Public/DerivedDataRequestOwner.h |
Include | #include "DerivedDataRequestOwner.h" |
Syntax
class IRequestOwner
Remarks
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.
Functions
Type | Name | Description |
---|---|---|
void | Begin ( IRequest* Request ) | Begin tracking for the request. |
void | BeginBarrier ( ERequestBarrierFlags Flags ) | See FRequestBarrier. |
TRefCountPtr... | End ( IRequest* Request ) | End tracking for the request. |
TRefCountPtr... | End ( IRequest* Request, CallbackType&& Callback, CallbackArgTypes&&... CallbackArgs ) | End tracking of the request. |
void | EndBarrier ( ERequestBarrierFlags Flags ) | |
EPriority | GetPriority () | Returns the priority that new requests are expected to inherit. |
bool | IsCanceled () | Returns whether the owner has been canceled, which new requests are expected to check. |
void | LaunchTask ( const TCHAR* DebugName, TUniqueFunction< void()>&& TaskBod... ) | Launches a task that executes the task body when scheduled. |