kDB: Knowledge DataBase
Loading...
Searching...
No Matches
knowCore::AsynchronousFunction< _TRet_, _Args_ > Class Template Reference

#include <AsynchronousFunction.h>

Public Member Functions

 AsynchronousFunction (const std::function< _TRet_(_Args_...)> &_function, QThread *_thread, const std::function< void(const _TRet_ &)> &_ret_handler)
 
void operator() (_Args_... _args)
 

Detailed Description

template<typename _TRet_, typename... _Args_>
class knowCore::AsynchronousFunction< _TRet_, _Args_ >

Execute a std::function inside a QThread using a QueuedConnection slot

Member Function Documentation

◆ operator()()

template<typename _TRet_ , typename... _Args_>
void knowCore::AsynchronousFunction< _TRet_, _Args_ >::operator() ( _Args_... _args)
inline

Call the function asynchronously


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