// 'this' is actually deleted from the thread where it's on the stack virtual void Process() { std::shared_ptr<CEvent> e_done(m_done); CThread::Process(); (*e_done).Set(); }
// 'this' is actually deleted from the thread where it's on the stack void Process() override { std::shared_ptr<CEvent> e_done(m_done); CThread::Process(); (*e_done).Set(); }
bool Wait(unsigned int displaytime, bool allowCancel) { std::shared_ptr<CEvent> e_done(m_done); Create(); return CGUIDialogBusy::WaitOnEvent(*e_done, displaytime, allowCancel); }
bool Wait() { std::shared_ptr<CEvent> e_done(m_done); Create(); return CGUIDialogBusy::WaitOnEvent(*e_done); }