15 BEGIN_NAMESPACE_THREADING
23 using CallbackFunction = std::function<void(void)>;
47 CallbackFunction callback;
50 END_NAMESPACE_THREADING
void execute() override
Provides an abstract or pure virtual method to contain the code which executes when the thread is run...
Provides a mechanism for executing a method in a thread.
Definition: functionthread.h:20
ThreadEx class for working with threads.
Definition: threadex.h:46
FunctionThread(CallbackFunction callback=nullptr)
Initializes a new instance of the FunctionThread class.
const CallbackFunction & getCallback() const
Get callback function.
ThreadEx is an abstract class that enables creation of separate threads of execution in an applicatio...
void setCallback(const CallbackFunction &value)
Set callback function.