unixstl/synch/sleep_functions.h File Reference


Detailed Description

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

#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.


Function Documentation

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

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

References STLSOFT_NS_GLOBAL, and stlsoft_static_cast.

Referenced by unixstl::micro_sleep().


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