platform/shared/common/RhoThread.h in rhodes-2.0.0.beta2 vs platform/shared/common/RhoThread.h in rhodes-2.0.0.beta3

- old
+ new

@@ -9,20 +9,22 @@ struct IRhoClassFactory; class CRhoThread : public IRhoRunnable { CAutoPtr<IRhoThreadImpl> m_pImpl; bool m_isInWaitState; - + bool m_bStop; public: CRhoThread(IRhoClassFactory* factory); virtual ~CRhoThread(void){} virtual void start(EPriority ePriority); - virtual void stop(unsigned int nTimeoutToKill){ m_pImpl->stop(nTimeoutToKill); } + virtual void stop(unsigned int nTimeoutToKill){ m_bStop = true; m_pImpl->stop(nTimeoutToKill); } virtual void wait(unsigned int nTimeout){ m_isInWaitState = true; m_pImpl->wait(nTimeout); m_isInWaitState = false; } virtual void stopWait(){ if (m_isInWaitState) m_pImpl->stopWait(); } virtual void sleep(unsigned int nTimeout){ m_pImpl->sleep(nTimeout); } + + bool isStopped(){return m_bStop;} }; } }