diff options
author | Bernard Normier <bernard@zeroc.com> | 2004-04-19 20:56:03 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2004-04-19 20:56:03 +0000 |
commit | 561956e7595873480596a59314a6e526f7422cd1 (patch) | |
tree | bebc933d592673f53ed5a2af42b07c2096039204 /java/src/IceUtil/CountDownLatch.java | |
parent | Added keep, keepFacet, remove and removeFacet to Evictor; implemented (diff) | |
download | ice-561956e7595873480596a59314a6e526f7422cd1.tar.bz2 ice-561956e7595873480596a59314a6e526f7422cd1.tar.xz ice-561956e7595873480596a59314a6e526f7422cd1.zip |
Added keep, keepFacet, remove and removeFacet to Evictor; bug fixes
Diffstat (limited to 'java/src/IceUtil/CountDownLatch.java')
-rw-r--r-- | java/src/IceUtil/CountDownLatch.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/src/IceUtil/CountDownLatch.java b/java/src/IceUtil/CountDownLatch.java index 88e6719a102..564024e444b 100644 --- a/java/src/IceUtil/CountDownLatch.java +++ b/java/src/IceUtil/CountDownLatch.java @@ -26,6 +26,7 @@ public class CountDownLatch { throw new IllegalArgumentException(); } + _count = count; } public synchronized void @@ -40,7 +41,7 @@ public class CountDownLatch public synchronized void countDown() { - if(--_count == 0) + if(_count > 0 && --_count == 0) { notifyAll(); } @@ -52,5 +53,5 @@ public class CountDownLatch return _count; } - private long _count; + private int _count; } |