29 virtual void OnError(
const std::exception & exc) = 0;
45 return Thread::UniquePtr(
new Thread(f, observer));
virtual void OnSuccess()=0
thread exited with Success.
Addon interface definition GNU LGPL.
static Thread::UniquePtr Create(ThreadProc f, ThreadObserver *observer=0)
#define DEFINE_CLASS_POINTERS(ClassName)
Exception declarations GNU LGPL.
std::function< void()> ThreadProc
virtual void OnError(const std::exception &exc)=0
Thread exited with error.
ThreadObserver * Observer
static Thread::UniquePtr Create(void(*f)(), ThreadObserver *observer=0)