mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-10 12:37:09 +00:00
Move countDown() out of the loop.
This commit is contained in:
parent
f76e5206a8
commit
f6013ef227
@ -53,8 +53,8 @@ public class TestDoneBeforeDoInBackground {
|
||||
@Override
|
||||
protected String doInBackground() throws Exception {
|
||||
try {
|
||||
workerStarted.countDown();
|
||||
while (true) {
|
||||
workerStarted.countDown();
|
||||
System.out.println("Working...");
|
||||
Thread.sleep(WAIT_TIME);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user