Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/HAL
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.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddThread
(
uint32 ThreadId, |
Used internally to add a new thread object. | |
| void | ForEachThread
(
TFunction< void(uint32 ThreadId, FRunnableThread*Thread)> Func |
Enumerate each thread. | |
| FThreadManager & | Get () |
Access to the singleton object. | |
| const FString & | GetThreadName
(
uint32 ThreadId |
Returns the name of a thread given its TLS id | |
| int32 | NumThreads () |
Get the number of registered threads | |
| void | RemoveThread
(
FRunnableThread* Thread |
Used internally to remove thread object. | |
| void | Tick () |
Ticks all fake threads and their runnable objects. |
Typedefs
| Name | Description |
|---|---|
| FThreads |