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

Version Path
rhodes-3.0.2 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.2.beta.1 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.1 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.1.beta.8 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.1.beta.7 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.1.beta.6 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.1.beta.5 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.1.beta.4 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.1.beta.3 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.1.beta.2 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.0 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.0.beta.7 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.0.beta.6 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.0.beta.5 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.0.beta.4 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.0.beta.3 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.0.beta.2 platform/shared/common/PosixThreadImpl.h
rhodes-3.0.0.beta.1 platform/shared/common/PosixThreadImpl.h
rhodes-2.4.1 platform/shared/common/PosixThreadImpl.h
rhodes-2.4.1.beta.1 platform/shared/common/PosixThreadImpl.h