summaryrefslogtreecommitdiff
path: root/java/src/Condition.java
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-11-13 07:01:18 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1996-11-13 07:01:18 +0000
commit0ae37fde11b526d388cdd62dafa4f0503802b349 (patch)
tree2f5967b185ebecaea05dbad80cd53b93ec43400c /java/src/Condition.java
parent1990b3bb30ba59e9494049e86f55c980ed0a6a76 (diff)
downloadATCD-0ae37fde11b526d388cdd62dafa4f0503802b349.tar.gz
changed long to int (as suggested by David Holmes)
Diffstat (limited to 'java/src/Condition.java')
-rw-r--r--java/src/Condition.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/Condition.java b/java/src/Condition.java
index 8d2ca3713f1..17acf228346 100644
--- a/java/src/Condition.java
+++ b/java/src/Condition.java
@@ -104,7 +104,7 @@ public class Condition
*/
public void broadcast ()
{
- for (long i = waiters_; i > 0; i--)
+ for (int i = waiters_; i > 0; i--)
semaphore_.release ();
}
@@ -117,7 +117,7 @@ public class Condition
return mutex_;
}
- private long waiters_;
+ private int waiters_;
private Semaphore semaphore_ = new Semaphore (0);
private Mutex mutex_;