Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
FunctionJob Class Reference

Use a function as a job. More...

#include <FunctionJob.h>

Inheritance diagram for FunctionJob:
Collaboration diagram for FunctionJob:

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.

Detailed Description

Use a function as a job.

A job class that invokes a function.

Constructor & Destructor Documentation

◆ FunctionJob()

FunctionJob::FunctionJob ( void(* func )(void *),
void * arg = nullptr )

run() invokes func(arg)

◆ ~FunctionJob()

FunctionJob::~FunctionJob ( )
overridedefault

Member Function Documentation

◆ run()

void FunctionJob::run ( )
overridevirtual

Run the job.

Implements IJob.


The documentation for this class was generated from the following files: