Thread.sleep (DMD 2.020)
John C
johnch_atms at hotmail.com
Sat Nov 1 08:42:06 PDT 2008
I think Thread.sleep, which was introduced in core.thread in 2.020, is broken on Win32. No matter what value I pass to the function, it merely sleeps for 1 millisecond. Looks like the problem is here:
period = period < TICKS_PER_MILLI ?
1 : // <------------------------------------------------- BUG?
period / TICKS_PER_MILLI;
Should it be testing if period is greater than MAX_SLEEP_MILLS, rather than less than TICKS_PER_MILLI?
Should I file a bug report?
John
More information about the Digitalmars-d
mailing list