mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
merged new xmlrpc-c revision 1472 from https://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/trunk
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8545 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
21
libs/xmlrpc-c/lib/libutil/sleep.c
Normal file
21
libs/xmlrpc-c/lib/libutil/sleep.c
Normal file
@@ -0,0 +1,21 @@
|
||||
#include "bool.h"
|
||||
|
||||
#include "xmlrpc-c/sleep_int.h"
|
||||
|
||||
#ifdef WIN32
|
||||
#include <windows.h>
|
||||
#include <process.h>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
|
||||
void
|
||||
xmlrpc_millisecond_sleep(unsigned int const milliseconds) {
|
||||
|
||||
#ifdef WIN32
|
||||
SleepEx(milliseconds, true);
|
||||
#else
|
||||
usleep(milliseconds * 1000);
|
||||
#endif
|
||||
}
|
Reference in New Issue
Block a user