summaryrefslogtreecommitdiff
path: root/ace/UPIPE_Stream.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-24 23:25:58 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1996-11-24 23:25:58 +0000
commitae3742d1d6afe6974dfb95acab3b7b99776f30a4 (patch)
tree12679470148b109564cc28a52fa7aeb5732f5b00 /ace/UPIPE_Stream.h
parent1d68bf26a8df9cf5b878a2070ab7d82e966eabc9 (diff)
downloadATCD-ae3742d1d6afe6974dfb95acab3b7b99776f30a4.tar.gz
Done
Diffstat (limited to 'ace/UPIPE_Stream.h')
-rw-r--r--ace/UPIPE_Stream.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/ace/UPIPE_Stream.h b/ace/UPIPE_Stream.h
index 64313fcea99..d3e223bca07 100644
--- a/ace/UPIPE_Stream.h
+++ b/ace/UPIPE_Stream.h
@@ -1,7 +1,6 @@
/* -*- C++ -*- */
// $Id$
-
// ============================================================================
//
// = LIBRARY
@@ -36,7 +35,10 @@ class ACE_Export ACE_UPIPE_Stream : public ACE_SPIPE
friend class ACE_UPIPE_Acceptor;
friend class ACE_UPIPE_Connector;
public:
- // = Termination.
+
+ // = Initialization and Termination.
+
+ ACE_UPIPE_Stream (void);
int close (void);
// Shut down the UPIPE and release resources.
@@ -107,6 +109,15 @@ private:
MT_Stream stream_;
// Stream component used by the <UPIPE_Acceptor> and
// <UPIPE_Connector> to link together two UPIPE_Streams.
+
+ int reference_count_;
+ // Keep track of whether the sender and receiver have both shut
+ // down.
+
+#if defined (ACE_MT_SAFE)
+ ACE_Thread_Mutex lock_;
+ // Ensure that we are thread-safe.
+#endif /* ACE_MT_SAFE */
};
#if defined (__ACE_INLINE__)