IQueuedWork

Interface for queued work objects.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/IQueuedWork.h

Include

#include "Misc/IQueuedWork.h"

Syntax

class IQueuedWork

Remarks

Interface for queued work objects.

This interface is a type of runnable object that requires no per thread initialization. It is meant to be used with pools of threads in an abstract way that prevents the pool from needing to know any details about the object being run. This allows queuing of disparate tasks and servicing those tasks with a generic thread pool.

Destructors

Name Description

Public function Virtual

~IQueuedWork()

Virtual destructor so that child implementations are guaranteed a chance to clean up any resources they allocated.

Functions

Name Description

Public function

void

 

Abandon()

Tells the queued work that it is being abandoned so that it can do per object clean up as needed.

Public function

void

 

DoThreadedWork()

This is where the real thread work is done.

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