Deskflow 1.22.0.197
Keyboard and mouse sharing utility
|
Use a function as a job. More...
#include <FunctionJob.h>
Public Member Functions | |
FunctionJob (void(*func)(void *), void *arg=nullptr) | |
run() invokes func(arg) | |
~FunctionJob () override=default | |
void | run () override |
Run the job. | |
Public Member Functions inherited from IInterface | |
virtual | ~IInterface ()=default |
Interface destructor does nothing. |
Use a function as a job.
A job class that invokes a function.
FunctionJob::FunctionJob | ( | void(* | func )(void *), |
void * | arg = nullptr ) |
run() invokes func(arg)
|
overridedefault |
|
overridevirtual |
Run the job.
Implements IJob.