IImageWriteQueue::CreateFence

(thread-safe) Create a fence at the current position in the queue.

Windows
MacOS
Linux

References

Module

ImageWriteQueue

Header

/Engine/Source/Runtime/ImageWriteQueue/Public/ImageWriteQueue.h

Include

#include "ImageWriteQueue.h"

Syntax

TFuture< void > CreateFence
(
    const TFunction< void()> & InOnFenceReached
)

Remarks

(thread-safe) Create a fence at the current position in the queue. The future and callback will be invoked when all existing tasks in the queue have been completed. @note Where the queue is empty, the future will be immediately fulfilled, and callback invoked on the next main thread tick.

Returns

A future that is fulfilled when the current state of the queue has been completely finished

Parameters

Parameter

Description

InOnFenceReached

A callback to be invoked when the fence has been reached (ie all work ahead of it in the queue has been completed)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss