mirror of
https://github.com/corda/corda.git
synced 2025-01-23 04:48:09 +00:00
47503854d5
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. |
||
---|---|---|
.. | ||
io | ||
lang | ||
net | ||
nio | ||
security | ||
text | ||
util |