#include <CArchSleepWindows.h>
Inherits IArchSleep.
Inheritance diagram for CArchSleepWindows:
Public Member Functions | |
CArchSleepWindows () | |
virtual | ~CArchSleepWindows () |
virtual void | sleep (double timeout) |
Sleep. |
Definition at line 23 of file CArchSleepWindows.h.
void CArchSleepWindows::sleep | ( | double | timeout | ) | [virtual] |
Sleep.
Blocks the calling thread for timeout
seconds. If timeout
< 0.0 then the call returns immediately. If timeout
== 0.0 then the calling thread yields the CPU.
(cancellation point)
Implements IArchSleep.
Definition at line 34 of file CArchSleepWindows.cpp.
References CArchMultithreadWindows::getCancelEventForCurrentThread(), and CArchMultithreadWindows::getInstance().