22 #ifndef XAPIAN_INCLUDED_SAFEUNISTD_H 23 #define XAPIAN_INCLUDED_SAFEUNISTD_H 26 # error config.h must be included first in each C++ source file 45 #if defined __WIN32__ && !defined HAVE_SLEEP 48 sleep(
unsigned int seconds)
51 extern void xapian_sleep_milliseconds(
unsigned int millisecs);
60 if (seconds > 4294967u) {
61 xapian_sleep_milliseconds(4294967000u);
62 return seconds - 4294967u;
64 xapian_sleep_milliseconds(seconds * 1000u);
void sleep(double t)
Sleep until the time represented by this object.