Closed GoogleCodeExporter closed 8 years ago
This should work. However, I have a couple of suggestions...
Don't use Thread.sleep, instead use Thread.wait().
If you are going to pass in an amount to wait, wait a bit longer before
checking to make it more efficient.
Also, you don't need to pass in a time to wait since you can wait on command to
let you know when it has finished. You can do the following:
command.wait();
A notifyAll is called when the command is finished and your lock will be
released.
Original comment by Stericso...@gmail.com
on 7 Oct 2013 at 1:52
Original issue reported on code.google.com by
emanuel....@gmail.com
on 25 Sep 2013 at 11:04