diff options
author | mcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2012-08-17 09:07:16 +0000 |
---|---|---|
committer | mcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2012-08-17 09:07:16 +0000 |
commit | c84b15b73b798d78917e2f44e372882a73c389c2 (patch) | |
tree | d164f307f63afc6d602d6cb7ec7275f86916025c /ACE/ace/Stream.h | |
parent | d4e243b581951226185dce87d6ede2f24b38080c (diff) | |
download | ATCD-c84b15b73b798d78917e2f44e372882a73c389c2.tar.gz |
Fri Aug 17 09:04:50 UTC 2012 Martin Corino <mcorino@remedy.nl>
Diffstat (limited to 'ACE/ace/Stream.h')
-rw-r--r-- | ACE/ace/Stream.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ACE/ace/Stream.h b/ACE/ace/Stream.h index 5d72a377074..2fe058474bb 100644 --- a/ACE/ace/Stream.h +++ b/ACE/ace/Stream.h @@ -24,6 +24,9 @@ #include "ace/IO_Cntl_Msg.h" #include "ace/Message_Block.h" #include "ace/Module.h" +#if defined (ACE_HAS_THREADS) +# include "ace/Condition_Attributes.h" +#endif ACE_BEGIN_VERSIONED_NAMESPACE_DECL @@ -188,6 +191,14 @@ private: /// Protect the stream against race conditions. ACE_SYNCH_MUTEX_T lock_; +#if defined (ACE_HAS_THREADS) + /// Attributes to initialize condition with. + /* We only need this because some crappy compilers can't + properly handle initializing the conditions with + temporary objects. */ + ACE_Condition_Attributes_T<TIME_POLICY> cond_attr_; +#endif + /// Use to tell all threads waiting on the close that we are done. ACE_SYNCH_CONDITION_T final_close_; }; |