IRequestOwner

A request owner manages requests throughout their execution.

Windows
MacOS
Linux

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

Name Description

Public function

void

 

Begin

(
    IRequest* Request
)

Begin tracking for the request.

Public function

void

 

BeginBarrier

(
    ERequestBarrierFlags Flags
)

See FRequestBarrier.

Public function

TRefCountPtr...

 

End

(
    IRequest* Request
)

End tracking for the request.

Public function

TRefCountPtr...

 

End

(
    IRequest* Request,
    CallbackType&& Callback,
    CallbackArgTypes&&... CallbackArgs
)

End tracking of the request.

Public function

void

 

EndBarrier

(
    ERequestBarrierFlags Flags
)

Public function Const

EPriority

 

GetPriority()

Returns the priority that new requests are expected to inherit.

Public function Const

bool

 

IsCanceled()

Returns whether the owner has been canceled, which new requests are expected to check.

See Also