TaskCompletionCallback

Used to schedule a task to run after all associated tasks have run.

File location: framework/cauldron/framework/inc/core/taskmanager.h

Construction

Return type

Description

TaskCompletionCallback (Task completionTask, uint32_t taskCount = 1)

Detailed description

Used to schedule a task to run after all associated tasks have run. Ensures we don’t have to Wait() on tasks to complete so that we can fully use all our threads at all times (as long as work is available)

Data fields

Type

Description

Task

CompletionTask
The task to execute once the task count reaches 0.

std::atomic_uint

TaskCount
Number of tasks this callback is paired with. Count will tick down upon completion of each dependent task.