template <class Runnable> class CryThread : public CrySimpleThread;
CryThread.h
Thread class.
CryThread is an extension of CrySimpleThread providing a lock (mutex) and a condition variable per instance.
CryThread();
CryMutex & GetLock();
void Lock();
void Notify();
void NotifySingle();
bool TimedWait(uint32 milliseconds);
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.
bool TryLock();
void Unlock();
void Wait();