winstl/synch/sleep_functions.h File Reference


Detailed Description

[C, C++] Various time functions (Synchronisation Library).

#include <winstl/winstl.h>

Go to the source code of this file.

Namespaces

namespace  winstl

Functions

STLSOFT_INLINE int winstl__micro_sleep (ws_uint_t microseconds)
 [C, C++] Puts the calling thread to sleep for the given number of microseconds.
int micro_sleep (ws_uint_t microseconds)
 [C++ only] Puts the calling thread to sleep for the given number of microseconds.


Function Documentation

STLSOFT_INLINE int winstl__micro_sleep ( ws_uint_t  microseconds  ) 

[C, C++] Puts the calling thread to sleep for the given number of microseconds.

winstl__micro_sleep(100000);  // Sleep for 0.1 seconds
winstl__micro_sleep(100);     // Sleep for 0.1 milliseconds

Parameters:
microseconds The number of microseconds to wait
Returns:
A boolean value indicating whether the operation was successful. If not, GetLastError() will contain an error code representing the reason for failure.
See also:
winstl::micro_sleep

References STLSOFT_NS_GLOBAL.

Referenced by winstl::micro_sleep().


Generated on Thu Jun 10 08:58:00 2010 for STLSoft by  doxygen 1.5.6