aboutsummaryrefslogtreecommitdiff
path: root/dep/acelite/ace/Null_Condition.h
diff options
context:
space:
mode:
Diffstat (limited to 'dep/acelite/ace/Null_Condition.h')
-rw-r--r--dep/acelite/ace/Null_Condition.h36
1 files changed, 23 insertions, 13 deletions
diff --git a/dep/acelite/ace/Null_Condition.h b/dep/acelite/ace/Null_Condition.h
index 5f6277d1146..9a1e47ec093 100644
--- a/dep/acelite/ace/Null_Condition.h
+++ b/dep/acelite/ace/Null_Condition.h
@@ -4,7 +4,7 @@
/**
* @file Null_Condition.h
*
- * $Id: Null_Condition.h 91626 2010-09-07 10:59:20Z johnnyw $
+ * $Id: Null_Condition.h 96076 2012-08-18 19:26:00Z johnnyw $
*
* Moved from Synch.h.
*
@@ -17,6 +17,7 @@
#include /**/ "ace/pre.h"
#include "ace/Null_Mutex.h"
+#include "ace/Condition_T.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
@@ -27,23 +28,30 @@
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Time_Value;
+class ACE_Condition_Attributes;
+template <class MUTEX> class ACE_Condition;
/**
- * @class ACE_Null_Condition
- *
- * @brief Implement a do nothing ACE_Condition variable wrapper,
- * i.e., all methods are no ops. This class is necessary since
- * some C++ compilers are *very* lame...
+ * @brief ACE_Condition template specialization written using
+ * ACE_Null_Mutexes. Implements a do nothing ACE_Condition
+ * specialization, i.e., all methods are no ops.
*/
-class ACE_Null_Condition
+template <>
+class ACE_Condition<ACE_Null_Mutex>
{
public:
- ACE_Null_Condition (const ACE_Null_Mutex &m,
- const ACE_TCHAR * = 0,
- void * = 0)
+ ACE_Condition (const ACE_Null_Mutex &m,
+ const ACE_TCHAR * = 0,
+ void * = 0)
: mutex_ ((ACE_Null_Mutex &) m) {}
- ~ACE_Null_Condition (void) {}
+ ACE_Condition (const ACE_Null_Mutex &m,
+ const ACE_Condition_Attributes &,
+ const ACE_TCHAR * = 0,
+ void * = 0)
+ : mutex_ ((ACE_Null_Mutex &) m) {}
+
+ ~ACE_Condition (void) {}
/// Returns 0.
int remove (void) {return 0;}
@@ -73,10 +81,12 @@ protected:
private:
// = Prevent assignment and initialization.
- void operator= (const ACE_Null_Condition &);
- ACE_Null_Condition (const ACE_Null_Condition &);
+ void operator= (const ACE_Condition<ACE_Null_Mutex> &);
+ ACE_Condition (const ACE_Condition<ACE_Null_Mutex> &);
};
+typedef ACE_Condition<ACE_Null_Mutex> ACE_Null_Condition;
+
ACE_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"