FThreadManager

Manages runnables and runnable threads.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/ThreadManager.h

Include

#include "HAL/ThreadManager.h"

Syntax

class FThreadManager

Remarks

Manages runnables and runnable threads.

Functions

Name Description

Public function

void

 

AddThread

(
    uint32 ThreadId,
    FRunnableThread* Thread
)

Used internally to add a new thread object.

Public function

void

 

ForEachThread

(
    TFunction< void, class FRunn...
)

Enumerate each thread.

Public function Static

FThreadManag...

 

Get()

Access to the singleton object.

Public function Static

const FStrin...

 

GetThreadName

(
    uint32 ThreadId
)

Returns the name of a thread given its TLS id

Public function Static

bool

 

IsInitialized()

Checks if thread manager has been initialized.

Public function

void

 

RemoveThread

(
    FRunnableThread* Thread
)

Used internally to remove thread object.

Public function

void

 

Tick()

Ticks all fake threads and their runnable objects.

Constants

Name

Description

bIsInitialized

Set if thread manager is initialized.

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