diff options
Diffstat (limited to 'ACE/ace/Null_Mutex.h')
-rw-r--r-- | ACE/ace/Null_Mutex.h | 52 |
1 files changed, 9 insertions, 43 deletions
diff --git a/ACE/ace/Null_Mutex.h b/ACE/ace/Null_Mutex.h index 8d68c709d5a..4c0fb3eb713 100644 --- a/ACE/ace/Null_Mutex.h +++ b/ACE/ace/Null_Mutex.h @@ -16,12 +16,6 @@ #define ACE_NULL_MUTEX_H #include /**/ "ace/pre.h" -// All methods in this class are inline, so there is no -// need to import or export on Windows. -- CAE 12/18/2003 -// Update... leaving off the ACE_Export causes compile warnings in some -// cases with Microsoft Visual Studio .NET 2005, so I added the ACE_Export -// to these class declarations. Steve Huston, 12/8/2006. - #include "ace/os_include/os_errno.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) @@ -90,42 +84,12 @@ public: int lock_; // A dummy lock. }; -#if defined (ACE_USES_OBSOLETE_GUARD_CLASSES) -/** - * @class ACE_Null_Mutex_Guard - * - * @brief This data structure is meant to be used within a method or - * function... It performs automatic aquisition and release of - * an ACE_Null_Mutex. - * - * This class is obsolete and should be replaced by - * ACE_Guard<ACE_Null_Mutex>. - */ -class ACE_Export ACE_Null_Mutex_Guard -{ -public: - ACE_Null_Mutex_Guard (ACE_Null_Mutex &) {} - ~ACE_Null_Mutex_Guard (void) {} - int remove (void) {return 0;} - int locked (void) {return 1;} - int acquire (void) {return 0;} - int tryacquire (void) {return 0;} - int release (void) {return 0:} - void dump (void) const {} - -private: - // = Prevent assignment and initialization. - void operator= (const ACE_Null_Mutex_Guard &); - ACE_Null_Mutex_Guard (const ACE_Null_Mutex_Guard &); -}; -#endif /* ACE_USES_OBSOLETE_GUARD_CLASSES */ +// FUZZ: disable check_for_ACE_Guard template <class ACE_LOCK> class ACE_Guard; /** - * @class ACE_Guard<ACE_Null_Mutex> - * * @brief Template specialization of ACE_Guard for the * ACE_Null_Mutex. * @@ -164,8 +128,8 @@ template <class ACE_LOCK> class ACE_Write_Guard; /** - * @class ACE_Write_Guard<ACE_Null_Mutex> - * + * @brief Template specialization of ACE_Write_Guard for the + * ACE_Null_Mutex. */ template<> class ACE_Export ACE_Write_Guard<ACE_Null_Mutex> @@ -188,8 +152,8 @@ template <class ACE_LOCK> class ACE_Read_Guard; /** - * @class ACE_Read_Guard<ACE_Null_Mutex> - * + * @brief Template specialization of ACE_Read)Guard for the + * ACE_Null_Mutex. */ template<> class ACE_Export ACE_Read_Guard<ACE_Null_Mutex> @@ -208,11 +172,13 @@ public: void dump (void) const {} }; +// FUZZ: enable check_for_ACE_Guard + template <class T> class ACE_Malloc_Lock_Adapter_T; /** - * @class ACE_Malloc_Lock_Adapter_T<ACE_Null_Mutex> - * + * @brief Template specialization of ACE_Malloc_Lock_Adapter_T for the + * ACE_Null_Mutex. */ template<> class ACE_Export ACE_Malloc_Lock_Adapter_T<ACE_Null_Mutex> |