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/Message_Queue_T.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/Message_Queue_T.h')
-rw-r--r-- | ACE/ace/Message_Queue_T.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ACE/ace/Message_Queue_T.h b/ACE/ace/Message_Queue_T.h index 8e244f7a072..51431c6e6c7 100644 --- a/ACE/ace/Message_Queue_T.h +++ b/ACE/ace/Message_Queue_T.h @@ -21,6 +21,9 @@ #include "ace/Guard_T.h" #include "ace/Time_Policy.h" #include "ace/Time_Value_T.h" +#if defined (ACE_HAS_THREADS) +# include "ace/Condition_Attributes.h" +#endif #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once @@ -606,6 +609,14 @@ protected: /// Protect queue from concurrent access. ACE_SYNCH_MUTEX_T lock_; +#if defined (ACE_HAS_THREADS) + /// Attributes to initialize conditions 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 + /// Used to make threads sleep until the queue is no longer empty. ACE_SYNCH_CONDITION_T not_empty_cond_; |