FQueuedThreadPool::AddQueuedWork

Checks to see if there is a thread available to perform the task.

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

References

Module

Core

Header

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

Include

#include "Misc/QueuedThreadPool.h"

Syntax

void AddQueuedWork
(
    IQueuedWork * InQueuedWork,
    EQueuedWorkPriority InQueuedWorkPriority
)

Remarks

Checks to see if there is a thread available to perform the task. If not, it queues the work for later. Otherwise it is immediately dispatched.

Parameters

Parameter

Description

InQueuedWork

The work that needs to be done asynchronously

InQueuedWorkPriority

The priority at which to process this task

See Also