Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Tasks > API/Runtime/Core/Tasks/FTaskConcurrencyLimiter
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Tasks/TaskConcurrencyLimiter.h |
| Include | #include "Tasks/TaskConcurrencyLimiter.h" |
template<typename TaskFunctionType>
void Push
(
const TCHAR * DebugName,
TaskFunctionType && TaskFunction
)
Remarks
Push a new task.
Parameters
| Name | Description |
|---|---|
| DebugName | Helps to identify the task in debugger and profiler. |
| TaskFunction | A callable with a slot parameter, usually a lambda but can be also a functor object or a pointer to a function. The slot parameter is an index in [0..max_concurrency) range, unique at any moment of time, that can be used in user code to index a fixed-size buffer. See TaskConcurrencyLimiterStressTest() for an example. |