diff options
Diffstat (limited to 'java/src/IceUtil/CountDownLatch.java')
-rw-r--r-- | java/src/IceUtil/CountDownLatch.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/java/src/IceUtil/CountDownLatch.java b/java/src/IceUtil/CountDownLatch.java index f26806f827a..3550913d89a 100644 --- a/java/src/IceUtil/CountDownLatch.java +++ b/java/src/IceUtil/CountDownLatch.java @@ -17,35 +17,35 @@ public class CountDownLatch { public CountDownLatch(int count) { - if(_count < 0) - { - throw new IllegalArgumentException("count < 0"); - } - _count = count; + if(_count < 0) + { + throw new IllegalArgumentException("count < 0"); + } + _count = count; } public synchronized void await() throws InterruptedException { - while(_count > 0) - { - wait(); - } + while(_count > 0) + { + wait(); + } } public synchronized void countDown() { - if(_count > 0 && --_count == 0) - { - notifyAll(); - } + if(_count > 0 && --_count == 0) + { + notifyAll(); + } } public synchronized long getCount() { - return _count; + return _count; } private int _count; |