diff options
author | ljb1 <ljb1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-11-11 08:10:17 +0000 |
---|---|---|
committer | ljb1 <ljb1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-11-11 08:10:17 +0000 |
commit | a7711068233f8d85283f80c2a75191477a6c6338 (patch) | |
tree | c7e8fc3c1335eda1448ef9417036d6e78e79e180 /ace | |
parent | 8e2bacdc15014b88eda1839b8c250f0f48f13150 (diff) | |
download | ATCD-a7711068233f8d85283f80c2a75191477a6c6338.tar.gz |
Thu Nov 11 01:54:55 1999 Luther J Baker <ljb1@cs.wustl.edu>
Diffstat (limited to 'ace')
-rw-r--r-- | ace/Log_Msg.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ace/Log_Msg.h b/ace/Log_Msg.h index 7fd8869de58..1002b4886d6 100644 --- a/ace/Log_Msg.h +++ b/ace/Log_Msg.h @@ -278,7 +278,11 @@ public: // "void msg_ostream (HANDLE)" and "HANDLE msg_ostream (void)" // on Windows CE. There is no <iostream.h> support on CE. - void msg_ostream (ACE_OSTREAM_TYPE *); + void msg_ostream (ACE_OSTREAM_TYPE *, int delete_ostream = 0); + // delete_stream == 1, forces Log_Msg.h to delete the stream in + // its own ~dtor (assumes control of the stream) + // use only with proper ostream (eg: fstream), not (cout, cerr) + ACE_OSTREAM_TYPE *msg_ostream (void) const; // Get the ostream that is used to print error messages. @@ -446,6 +450,9 @@ private: int tracing_enabled_; // Are we allowing tracing in this thread? + int delete_ostream_; + // Are we deleting this ostream? + ACE_Thread_Descriptor *thr_desc_; // If we're running in the context of an <ACE_Thread_Manager> this // will point to the thread descriptor adapter which holds the |