jdk/src/java.base/share/classes/java/io/PipedInputStream.java
changeset 34774 03b4e6dc367b
parent 25859 3317bb8137f4
child 44844 b2b4d98404ba
equal deleted inserted replaced
34764:f9bcdce2df26 34774:03b4e6dc367b
    46  * @author  James Gosling
    46  * @author  James Gosling
    47  * @see     java.io.PipedOutputStream
    47  * @see     java.io.PipedOutputStream
    48  * @since   1.0
    48  * @since   1.0
    49  */
    49  */
    50 public class PipedInputStream extends InputStream {
    50 public class PipedInputStream extends InputStream {
    51     boolean closedByWriter = false;
    51     boolean closedByWriter;
    52     volatile boolean closedByReader = false;
    52     volatile boolean closedByReader;
    53     boolean connected = false;
    53     boolean connected;
    54 
    54 
    55         /* REMIND: identification of the read and write sides needs to be
    55         /* REMIND: identification of the read and write sides needs to be
    56            more sophisticated.  Either using thread groups (but what about
    56            more sophisticated.  Either using thread groups (but what about
    57            pipes within a thread?) or using finalization (but it may be a
    57            pipes within a thread?) or using finalization (but it may be a
    58            long time until the next GC). */
    58            long time until the next GC). */