Commit f8d1b607 authored by unknown's avatar unknown

os0thread.c Fix os_thread_sleep: did not work if over 1000000 microsecs;...

os0thread.c	Fix os_thread_sleep: did not work if over 1000000 microsecs; caused slowness at least on Solaris and FreeBSD


innobase/os/os0thread.c:
  Fix os_thread_sleep: did not work if over 1000000 microsecs; caused slowness at least on Solaris and FreeBSD
parent e3dee8e0
......@@ -139,8 +139,8 @@ os_thread_sleep(
#else
struct timeval t;
t.tv_sec = 0;
t.tv_usec = tm;
t.tv_sec = tm / 1000000;
t.tv_usec = tm % 1000000;
select(0, NULL, NULL, NULL, &t);
#endif
......
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