Commit 9fe6813a authored by kent@mysql.com's avatar kent@mysql.com

my_sleep.c:

  On Windows my_sleep() always gave a zero microsecond sleep
parent 22639def
...@@ -23,6 +23,8 @@ void my_sleep(ulong m_seconds) ...@@ -23,6 +23,8 @@ void my_sleep(ulong m_seconds)
{ {
#ifdef __NETWARE__ #ifdef __NETWARE__
delay(m_seconds/1000+1); delay(m_seconds/1000+1);
#elif defined(__WIN__)
Sleep(m_seconds/1000+1); /* Sleep() has millisecond arg */
#elif defined(OS2) #elif defined(OS2)
DosSleep(m_seconds/1000+1); DosSleep(m_seconds/1000+1);
#elif defined(HAVE_SELECT) #elif defined(HAVE_SELECT)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment