18 #ifndef BERRYASYNCRUNNABLE_H_
19 #define BERRYASYNCRUNNABLE_H_
21 #include <Poco/ActiveRunnable.h>
30 template <
class ArgType,
class OwnerType>
34 typedef void (OwnerType::*
Callback)(
const ArgType&);
41 poco_check_ptr (pOwner);
46 ActiveRunnableBase::Ptr guard(
this,
false);
47 (_pOwner->*_method)(_arg);
void(OwnerType::* Callback)(const ArgType &)
AsyncRunnable(OwnerType *pOwner, Callback method, const ArgType &arg)