API Documentation
LambdaTask.h
1 // LambdaTask.h
3 //
5 
6 namespace nkTasks
7 {
11  class LambdaTask : public Task
12  {
13  public :
14 
18  LambdaTask () noexcept ;
24  LambdaTask (std::function<void ()> asyncWorkFunction) noexcept ;
28  virtual ~LambdaTask () ;
29 
30  // Setters
36  void setAsyncWorkFunction (std::function<void ()> function) ;
37 
38  // Implementations
39  virtual void onAsyncWork () override ;
40  } ;
41 }
nkTasks::LambdaTask::LambdaTask
LambdaTask() noexcept
nkTasks::LambdaTask::setAsyncWorkFunction
void setAsyncWorkFunction(std::function< void()> function)
nkTasks::LambdaTask
Utility task using lambda functions to submit work.
Definition: LambdaTask.h:12
nkTasks::Task
A task, job that can be submitted to a nkTasks::Thread.
Definition: Task.h:14
nkTasks
Encompasses all API of component NilkinsTasks.
Definition: LogManager.h:7
nkTasks::LambdaTask::onAsyncWork
virtual void onAsyncWork() override