Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / RW_Process_Mutex.cpp
blobaf95146270ebb4a66015ac920ade284e9dfaf644
1 #include "ace/RW_Process_Mutex.h"
2 #include "ace/Log_Category.h"
3 #include "ace/ACE.h"
5 #if !defined (__ACE_INLINE__)
6 #include "ace/RW_Process_Mutex.inl"
7 #endif /* __ACE_INLINE__ */
9 #include "ace/Malloc_T.h"
11 #if defined (ACE_WIN32)
12 #include "ace/OS_NS_fcntl.h"
13 #endif /* ACE_WIN32 */
15 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
17 ACE_ALLOC_HOOK_DEFINE(ACE_RW_Process_Mutex)
19 const ACE_TCHAR *
20 ACE_RW_Process_Mutex::unique_name ()
22 ACE::unique_name (this, this->name_, ACE_UNIQUE_NAME_LEN);
23 return this->name_;
26 ACE_RW_Process_Mutex::ACE_RW_Process_Mutex (const ACE_TCHAR *name,
27 int flags,
28 mode_t mode )
29 : lock_ (name ? name : unique_name (), flags, mode)
31 // ACE_TRACE ("ACE_RW_Process_Mutex::ACE_RW_Process_Mutex");
34 ACE_RW_Process_Mutex::~ACE_RW_Process_Mutex ()
36 // ACE_TRACE ("ACE_RW_Process_Mutex::~ACE_RW_Process_Mutex");
39 void
40 ACE_RW_Process_Mutex::dump () const
42 #if defined (ACE_HAS_DUMP)
43 // ACE_TRACE ("ACE_RW_Process_Mutex::dump");
44 ACELIB_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
45 this->lock_.dump ();
46 ACELIB_DEBUG ((LM_DEBUG, ACE_END_DUMP));
47 #endif /* ACE_HAS_DUMP */
50 ACE_END_VERSIONED_NAMESPACE_DECL