mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Copying ede-bug-report from branches in trunk
This commit is contained in:
21
ede-bug-tools/ede-bug-report/xmlrpc-c/deps/libutil/sleep.c
Normal file
21
ede-bug-tools/ede-bug-report/xmlrpc-c/deps/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