CryThread

Class Hierarchy
C++
template <class Runnable>
class CryThread : public CrySimpleThread;
File

CryThread.h

Description

Thread class.

CryThread is an extension of CrySimpleThread providing a lock (mutex) and a condition variable per instance.

CryThread::CryThread Constructor
C++
CryThread();
CryThread::GetLock Method
C++
CryMutex & GetLock();
CryThread::Lock Method
C++
void Lock();
CryThread::Notify Method
C++
void Notify();
CryThread::NotifySingle Method
C++
void NotifySingle();
CryThread::TimedWait Method
C++
bool TimedWait(uint32 milliseconds);
Description

Timed wait on the associated condition.

The 'milliseconds' parameter specifies the relative timeout in milliseconds. The method returns true if a notification was received and false if the specified timeout expired without receiving a notification.

UNIX note: the method will _not_ return if the calling thread receives a signal. Instead the call is re-started with the _original_ timeout value. This misfeature may be fixed in the future.

CryThread::TryLock Method
C++
bool TryLock();
CryThread::Unlock Method
C++
void Unlock();
CryThread::Wait Method
C++
void Wait();