Sha256: b6cc3c534da5b31dfa262bd4540e98d6da19f6291edbb5f1141cd3b7412e7796
Contents?: true
Size: 800 Bytes
Versions: 38
Compression:
Stored size: 800 Bytes
Contents
#ifndef RHO_POSIX_THREAD_IMPL_9e4b35f90ae146ae9c809ca56e4ef856 #define RHO_POSIX_THREAD_IMPL_9e4b35f90ae146ae9c809ca56e4ef856 #include "common/IRhoThreadImpl.h" #include "logging/RhoLog.h" namespace rho { namespace common { class CPosixThreadImpl : public IRhoThreadImpl { DEFINE_LOGCLASS; public: CPosixThreadImpl(); ~CPosixThreadImpl(); void start(IRhoRunnable *pRunnable, IRhoRunnable::EPriority ePriority); void stop(unsigned int nTimeoutToKill); int wait(unsigned int nTimeout); void stopWait(); void sleep(unsigned int nTimeout); private: pthread_cond_t m_condSync; common::CMutex m_mxSync; pthread_t m_thread; bool m_stop_wait; }; } // namespace common } // namespace rho #endif // RHO_POSIX_THREAD_IMPL_9e4b35f90ae146ae9c809ca56e4ef856
Version data entries
38 entries across 38 versions & 1 rubygems