Skip to content

Commit

Permalink
Update OptimisticLock.java
Browse files Browse the repository at this point in the history
  • Loading branch information
puzpuzpuz authored Nov 5, 2018
1 parent 2679093 commit 1b67825
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/ru/puzpuzpuz/http/util/OptimisticLock.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public final class OptimisticLock {
public void lock() {
while (!tryLock()) {
// keep the loop
// TODO consider using Thread.yield() here to avoid core starvation
}
}

Expand Down

0 comments on commit 1b67825

Please sign in to comment.