[Issue 5438] Thread.sleep doesn't sleep

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 15 07:13:08 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5438


Pedro Rodrigues <pdfrodrigues at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pdfrodrigues at gmail.com


--- Comment #1 from Pedro Rodrigues <pdfrodrigues at gmail.com> 2011-04-15 07:09:38 PDT ---
According to the documentation of Thread.sleep it receives as argument "The
minimum duration the calling thread should be suspended, in 100 nanosecond
intervals.".
That means that calling with value 10_000 will sleep for 1 millisecond, which
is too small to be noticeable. I tried with 100_000_000 (10 seconds) in DMD
v2.052 and it seemed to be working as expected.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list