14 #ifndef BERRYASYNCRUNNABLE_H_ 15 #define BERRYASYNCRUNNABLE_H_ 17 #include <Poco/ActiveRunnable.h> 26 template <
class ArgType,
class OwnerType>
30 typedef void (OwnerType::*
Callback)(
const ArgType&);
37 poco_check_ptr (pOwner);
42 ActiveRunnableBase::Ptr guard(
this,
false);
43 (_pOwner->*_method)(_arg);
void(OwnerType::* Callback)(const ArgType &)
AsyncRunnable(OwnerType *pOwner, Callback method, const ArgType &arg)