diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-11-13 07:01:18 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-11-13 07:01:18 +0000 |
commit | 0ae37fde11b526d388cdd62dafa4f0503802b349 (patch) | |
tree | 2f5967b185ebecaea05dbad80cd53b93ec43400c /java/src/Condition.java | |
parent | 1990b3bb30ba59e9494049e86f55c980ed0a6a76 (diff) | |
download | ATCD-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.java | 4 |
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_; |