(Thread thread, long timeout)
| 399 | } |
| 400 | |
| 401 | public void timedJoin(Thread thread, long timeout) throws InterruptedException { |
| 402 | if (timeout > 0) { |
| 403 | long ms = toMillis(timeout); |
| 404 | int ns = excessNanos(timeout, ms); |
| 405 | thread.join(ms, ns); |
| 406 | } |
| 407 | } |
| 408 | |
| 409 | public void sleep(long timeout) throws InterruptedException { |
| 410 | if (timeout > 0) { |
nothing calls this directly
no test coverage detected