Encapsulates the std::function() template.
Definition TClosure.h:14
std::function< int(Args...)> func_type
Function type of the lambda or function.
Definition TClosure.h:19
int call(Args... args) const
Makes the call to the member function.
bool isAssigned() const
Checks if the closure is valid for calling.
Class which combines a thread class and closure template.
Definition ThreadClosure.h:35
ThreadClosure(const func_type &func, const std::string &name="")
Thread run function assigment constructor.
Definition ThreadClosure.h:50
int run() override
Definition ThreadClosure.h:59
ThreadClosure(const std::string &name="")
Default constructor.
Definition ThreadClosure.h:40
Thread wrapper class to be used for attachment to an existing thread or a new to be created thread....
Definition Thread.h:28
Definition Application.h:10