Navigation
API > API/Runtime > API/Runtime/ImageWriteQueue > API/Runtime/ImageWriteQueue/IImageWriteQueue
Description
- (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.
-
Where the queue is empty, the future will be immediately fulfilled, and callback invoked on the next main thread tick.
| Name | CreateFence |
| Type | function |
| Header File | /Engine/Source/Runtime/ImageWriteQueue/Public/ImageWriteQueue.h |
| Include Path | #include "ImageWriteQueue.h" |
TFuture < void > CreateFence
(
const TFunction < void> & InOnFenceReached
)
A future that is fulfilled when the current state of the queue has been completely finished
Parameters
| Name | Remarks |
|---|---|
| InOnFenceReached | A callback to be invoked when the fence has been reached (ie all work ahead of it in the queue has been completed) |