Permalink
Browse files

Minor cleanup

  • Loading branch information...
1 parent 3369fd0 commit 851268468121d672f58c0e46a2288ec24d6a2b9e @thomas-kielbus thomas-kielbus committed Jun 17, 2014
@@ -42,7 +42,7 @@ public void lock() {
@Override
public boolean tryLock() {
try {
- return lock.acquire(1, TimeUnit.MILLISECONDS);
+ return lock.acquire(0, TimeUnit.NANOSECONDS);
} catch (Exception e) {
throw new RuntimeException(e);
}
@@ -57,7 +57,7 @@ public void unlock() {
}
}
- public boolean isLockOwned(){
+ public boolean isLockOwned() {
return lock.isAcquiredInThisProcess();
}
}

0 comments on commit 8512684

Please sign in to comment.