diff options
author | pjain <pjain@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-04-05 19:29:43 +0000 |
---|---|---|
committer | pjain <pjain@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-04-05 19:29:43 +0000 |
commit | 035a368e5fa530aaad64545586d3c0bfeb16b161 (patch) | |
tree | 8f154442f49add459829e2bbe876c4f0e4e25cf7 /java/src | |
parent | 83b391281c96911e376754c336bd10d5c49530e6 (diff) | |
download | ATCD-035a368e5fa530aaad64545586d3c0bfeb16b161.tar.gz |
Added a default constructor
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/Stream.java | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/java/src/Stream.java b/java/src/Stream.java index 09f1a392ff2..acb9a8856c8 100644 --- a/java/src/Stream.java +++ b/java/src/Stream.java @@ -30,6 +30,28 @@ import ACE.OS.*; public class Stream { + + public Stream () + { + this (null, null, null); + } + + // Create a Stream consisting of <head> and <tail> as the Stream + // head and Stream tail, respectively. If these are 0 then the + // <ACE_Stream_Head> and <ACE_Stream_Tail> are used, respectively. + // <arg> is the value past in to the open() methods of the tasks. + + public Stream (Object a, + Module head, + Module tail) + { + this.linkedUs_ = null; + // this.final_close_ = this.lock_; + + if (this.open (a, head, tail) == -1) + ACE.ERROR ("open" + head.name () + " " + tail.name ()); + } + public int push (Module newTop) { if (this.pushModule (newTop, @@ -358,17 +380,6 @@ public class Stream return this.unlinkInternal (); } - public Stream (Object a, - Module head, - Module tail) - { - this.linkedUs_ = null; - // this.final_close_ = this.lock_; - - if (this.open (a, head, tail) == -1) - ACE.ERROR ("open" + head.name () + " " + tail.name ()); - } - public void dump () { ACE.DEBUG ("-------- module links --------"); |