API Documentation
MAIN PAGE
NAMESPACES
CLASSES
Documentation
Headers
NilkinsTasks
Scheduler
LambdaSchedulerTask.h
1
// LambdaSchedulerTask.h
3
//
5
6
namespace
nkTasks
7
{
11
class
LambdaSchedulerTask
:
public
SchedulerTask
12
{
13
public :
14
15
// Constructor, destructor
19
LambdaSchedulerTask
() noexcept ;
26
LambdaSchedulerTask
(std::function<
void
()> asyncWorkFunction, std::function<
void
()> syncFunction) noexcept ;
30
virtual ~
LambdaSchedulerTask
() ;
31
32
// Setters
38
void
setAsyncWorkFunction
(std::function<
void
()> value) ;
44
void
setSyncFunction
(std::function<
void
()> value) ;
45
46
// Implement base methods
47
virtual
void
onAsyncWork
() override ;
48
virtual
void
onSync
() override ;
49
50
51
} ;
52
}
nkTasks::LambdaSchedulerTask::onAsyncWork
virtual void onAsyncWork() override
nkTasks::LambdaSchedulerTask
Utility scheduler task using lambda functions to work.
Definition:
LambdaSchedulerTask.h:12
nkTasks
Encompasses all API of component NilkinsTasks.
Definition:
LogManager.h:7
nkTasks::LambdaSchedulerTask::onSync
virtual void onSync() override
nkTasks::LambdaSchedulerTask::setSyncFunction
void setSyncFunction(std::function< void()> value)
nkTasks::LambdaSchedulerTask::setAsyncWorkFunction
void setAsyncWorkFunction(std::function< void()> value)
nkTasks::LambdaSchedulerTask::LambdaSchedulerTask
LambdaSchedulerTask() noexcept
nkTasks::SchedulerTask
A task compatible with the Scheduler, adding a synchronization point.
Definition:
SchedulerTask.h:12
Generated by
Doxygen
1.8.18