diff options
Diffstat (limited to 'ace/RW_Process_Mutex.h')
-rw-r--r-- | ace/RW_Process_Mutex.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/ace/RW_Process_Mutex.h b/ace/RW_Process_Mutex.h index cee7a1a6cb5..828a003fdac 100644 --- a/ace/RW_Process_Mutex.h +++ b/ace/RW_Process_Mutex.h @@ -1,4 +1,5 @@ -/* -*- C++ -*- */ +// -*- C++ -*- +// //============================================================================= /** * @file RW_Process_Mutex.h @@ -23,6 +24,8 @@ #include "ace/Default_Constants.h" #include "ace/OS_NS_fcntl.h" +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + /** * @class ACE_RW_Process_Mutex * @@ -33,16 +36,16 @@ * used between separate processes, rather than threads in the * same process. This isn't a limitation of ACE, it's simply * the file lock semantics on UNIX and Win32. - * \todo For systems with pthread_rwlockattr_setpshared one + * \todo For systems with pthread_rwlockattr_setpshared one * may consider using them to make the mutex faster. */ class ACE_Threads_Export ACE_RW_Process_Mutex { public: /// Create a readers/writer <Process_Mutex>, passing in the optional - /// <name>, <flags> and <mode> \sa ACE_File_Lock. - /// If not specified, a name is generated and flags and mode are set - /// to default platform values. + /// <name>, <flags> and <mode> \sa ACE_File_Lock. + /// If not specified, a name is generated and flags and mode are set + /// to default platform values. #if defined (ACE_WIN32) ACE_RW_Process_Mutex (const ACE_TCHAR *name = 0, int flags = O_CREAT|O_RDWR, @@ -50,7 +53,7 @@ public: #else ACE_RW_Process_Mutex (const ACE_TCHAR *name = 0, int flags = O_CREAT|O_RDWR, - mode_t mode = S_IRUSR | S_IWUSR ); + mode_t mode = S_IRUSR | S_IWUSR ); #endif /* ACE_WIN32 */ ~ACE_RW_Process_Mutex (void); @@ -120,6 +123,8 @@ private: ACE_File_Lock lock_; }; +ACE_END_VERSIONED_NAMESPACE_DECL + #if defined (__ACE_INLINE__) #include "ace/RW_Process_Mutex.inl" #endif /* __ACE_INLINE__ */ |