summaryrefslogtreecommitdiff
path: root/ndb/src
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-10-26 12:21:19 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-10-26 12:21:19 +0000
commit8ee124176690ed611c8851e3dd50a823c498a08b (patch)
tree1c0fb54acffc1e62521a97699db0e1423ce53c91 /ndb/src
parent9ccbc5b7c7dd839731a93c68f314fba90b07f799 (diff)
downloadmariadb-git-8ee124176690ed611c8851e3dd50a823c498a08b.tar.gz
Use my_sleep instead of nanosleep for portability
Diffstat (limited to 'ndb/src')
-rw-r--r--ndb/src/common/portlib/NdbSleep.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ndb/src/common/portlib/NdbSleep.c b/ndb/src/common/portlib/NdbSleep.c
index 19ab526fda8..44bafe98a37 100644
--- a/ndb/src/common/portlib/NdbSleep.c
+++ b/ndb/src/common/portlib/NdbSleep.c
@@ -16,16 +16,21 @@
#include <ndb_global.h>
+#include <my_sys.h>
#include <NdbSleep.h>
int
NdbSleep_MilliSleep(int milliseconds){
+ my_sleep(milliseconds*1000);
+ return 0;
+#if 0
int result = 0;
struct timespec sleeptime;
sleeptime.tv_sec = milliseconds / 1000;
sleeptime.tv_nsec = (milliseconds - (sleeptime.tv_sec * 1000)) * 1000000;
result = nanosleep(&sleeptime, NULL);
return result;
+#endif
}
int