forked from Mirrors/freeswitch
22 lines
302 B
C
22 lines
302 B
C
|
|
#ifdef WIN32
|
|
#include <windows.h>
|
|
#include <process.h>
|
|
#else
|
|
#include <unistd.h>
|
|
#endif
|
|
#include "bool.h"
|
|
|
|
#include "xmlrpc-c/sleep_int.h"
|
|
|
|
|
|
void
|
|
xmlrpc_millisecond_sleep(unsigned int const milliseconds) {
|
|
|
|
#ifdef WIN32
|
|
SleepEx(milliseconds, true);
|
|
#else
|
|
usleep(milliseconds * 1000);
|
|
#endif
|
|
}
|