Utility task using lambda functions to submit work.
More...
Utility task using lambda functions to submit work.
◆ LambdaTask() [1/2]
nkTasks::LambdaTask::LambdaTask |
( |
| ) |
|
|
noexcept |
◆ LambdaTask() [2/2]
nkTasks::LambdaTask::LambdaTask |
( |
std::function< void()> |
asyncWorkFunction | ) |
|
|
noexcept |
Callback constructor.
- Parameters
-
asyncWorkFunction | The callback to call during work. |
◆ ~LambdaTask()
virtual nkTasks::LambdaTask::~LambdaTask |
( |
| ) |
|
|
virtual |
◆ setAsyncWorkFunction()
void nkTasks::LambdaTask::setAsyncWorkFunction |
( |
std::function< void()> |
function | ) |
|
Sets the callback method to be called during the task work.
- Parameters
-
function | The function to call. |
◆ onAsyncWork()
virtual void nkTasks::LambdaTask::onAsyncWork |
( |
| ) |
|
|
overridevirtual |
Callback for the work that the task needs to do. This will be called in the thread the task has been assigned to.
Implements nkTasks::Task.
The documentation for this class was generated from the following file: