32 catch (std::exception &)
54 catch (
const std::exception & exc)
virtual void OnSuccess()=0
thread exited with Success.
Addon interface definition GNU LGPL.
Thread(std::function< void()> f, ThreadObserver *observer=0)
Starts f in a separate thread.
void Run()
Calls in the separate thread from ThreadProc.
void Join()
Wait until started thread stop.
static void ThreadProc(Thread *thread)
static member required for std::thread
std::function< void()> ThreadProc
virtual void OnError(const std::exception &exc)=0
Thread exited with error.
ThreadObserver * Observer