corda/classpath
Joel Dice 47503854d5 Thread.sleep(0) should not sleep indefinitely
Our implementation uses Object.wait(long) to implement Thread.sleep,
which had the side effect of interpreting zero as infinity.  However,
for Thread.sleep, zero just means zero.  I assume that doesn't mean
"don't sleep at all", though, or else the app wouldn't have called
Thread.sleep in the first place, so this patch sleeps for one
millisecond when zero is passed -- just enough to yield the processor
for a bit.  Thread.yield might be a better choice in this case, but I
assume the app would have called that directly if that's what it
wanted.
2012-08-12 11:17:59 -06:00
..
2012-08-11 06:56:19 -06:00
2012-05-11 17:43:27 -06:00
2012-08-02 10:41:41 -06:00
2012-07-17 18:21:17 -06:00
2012-08-02 10:41:41 -06:00
2012-05-11 17:43:27 -06:00