#include <unixstl/unixstl.h>
#include <sys/select.h>
#include <sys/time.h>
Go to the source code of this file.
Namespaces | |
| namespace | unixstl | 
Functions | |
| STLSOFT_INLINE int | unixstl__micro_sleep (us_uint_t microseconds) | 
| [C, C++] Puts the calling thread to sleep for the given number of microseconds.   | |
| int | micro_sleep (us_uint_t microseconds) | 
| [C++ only] Puts the calling thread to sleep for the given number of microseconds.   | |
| STLSOFT_INLINE int unixstl__micro_sleep | ( | us_uint_t | microseconds | ) | 
[C, C++] Puts the calling thread to sleep for the given number of microseconds.
unixstl__micro_sleep(100000); // Sleep for 0.1 seconds unixstl__micro_sleep(100); // Sleep for 0.1 milliseconds
| microseconds | The number of microseconds to wait | 
errno will contain an error code representing the reason for failure.References STLSOFT_NS_GLOBAL, and stlsoft_static_cast.
Referenced by unixstl::micro_sleep().
 1.5.6