replace 'for (;;)' with 'while (true)'

This commit is contained in:
Stepan Koltsov
2012-05-11 16:26:26 +04:00
parent 39ec3f7c14
commit aa4252462f
5 changed files with 7 additions and 7 deletions
@@ -33,7 +33,7 @@ public class LockPerf {
for (int i = 0; i < threadNum; ++i) {
new Thread(new Runnable() {
public void run() {
for (;;) {
while (true) {
lock.lock();
try {
if (counter.get() == 100000000) {