Pass unused "millis" argument to lock.tryLock method, line 76.
This commit is contained in:
parent
ff30703c8e
commit
a1229f66e4
|
@ -73,7 +73,7 @@ public class LivelockExample {
|
||||||
|
|
||||||
public void tryLock(Lock lock, long millis) {
|
public void tryLock(Lock lock, long millis) {
|
||||||
try {
|
try {
|
||||||
lock.tryLock(10, TimeUnit.MILLISECONDS);
|
lock.tryLock(millis, TimeUnit.MILLISECONDS);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue