Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Async > API/Runtime/Core/Async/Fundamental
Inheritance Hierarchy
- FSchedulerTls
- FScheduler
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Async/Fundamental/Scheduler.h |
| Include | #include "Async/Fundamental/Scheduler.h" |
Syntax
class FScheduler : public LowLevelTasks::FSchedulerTls
Constructors
| Type | Name | Description | |
|---|---|---|---|
FScheduler () |
Destructors
| Type | Name | Description | |
|---|---|---|---|
~FScheduler () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | BusyWait
(
const TaskType& Task, |
Tries to do some work until the Task is completed | |
| void | BusyWait
(
const TArrayView< const TaskType >& Tasks, |
Tries to do some work until all the Tasks are completed the template parameter can be any Type that has a const conversion operator to FTask | |
| void | BusyWaitUntil
(
Conditional&& Cond, |
Tries to do some work until the Conditional return true | |
| FScheduler & | Get () |
||
| EThreadPriority | Get the background priority set when workers were started | ||
| uint32 | Number of instantiated workers | ||
| EThreadPriority | Get the worker priority set when workers were started | ||
| void | RestartWorkers
(
uint32 NumForegroundWorkers, |
||
| void | StartWorkers
(
uint32 NumForegroundWorkers, |
Start number of workers where 0 is the system default | |
| void | StopWorkers
(
bool DrainGlobalQueue |
||
| bool | TryLaunch
(
FTask& Task, |
Try to launch the task, the return value will specify if the task was in the ready state and has been launched | |
| bool | TryLaunchAffinity
(
FTask& Task, |
Typedefs
| Name | Description |
|---|---|
| FConditional | Using 16 bytes here because it fits the vtable and one additional pointer |
Constants
| Name | Description |
|---|---|
| Singleton | |
| WorkerSpinCycles |