Commit ca8ac445 authored by Simon Marlow's avatar Simon Marlow

Fix sleep delay for the non-threaded Windows RTS

This is the Windows counterpart to "Make the non-threaded-RTS
threadDelay wait at least as long as asked"
parent ad17cf6e
......@@ -190,7 +190,7 @@ IOWorkerProc(PVOID param)
*
* Note: Sleep() is in milliseconds, not micros.
*/
Sleep(work->workData.delayData.msecs / 1000);
Sleep((work->workData.delayData.msecs + 999) / 1000);
len = work->workData.delayData.msecs;
complData = NULL;
fd = 0;
......
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