From c84b15b73b798d78917e2f44e372882a73c389c2 Mon Sep 17 00:00:00 2001 From: mcorino Date: Fri, 17 Aug 2012 09:07:16 +0000 Subject: Fri Aug 17 09:04:50 UTC 2012 Martin Corino --- ACE/ace/Message_Queue_T.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ACE/ace/Message_Queue_T.h') 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 cond_attr_; +#endif + /// Used to make threads sleep until the queue is no longer empty. ACE_SYNCH_CONDITION_T not_empty_cond_; -- cgit v1.2.1