summaryrefslogtreecommitdiff
path: root/java/src/IceUtil/CountDownLatch.java
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2004-04-19 20:56:03 +0000
committerBernard Normier <bernard@zeroc.com>2004-04-19 20:56:03 +0000
commit561956e7595873480596a59314a6e526f7422cd1 (patch)
treebebc933d592673f53ed5a2af42b07c2096039204 /java/src/IceUtil/CountDownLatch.java
parentAdded keep, keepFacet, remove and removeFacet to Evictor; implemented (diff)
downloadice-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.java5
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;
}