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