Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / RW_Mutex.cpp
blob3a9a7a488aecc3e9013984d9eca5042192b15e39
1 /**
2 * @file RW_Mutex.cpp
4 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
5 */
7 #include "ace/RW_Mutex.h"
9 #if defined (ACE_HAS_THREADS)
11 #if !defined (__ACE_INLINE__)
12 #include "ace/RW_Mutex.inl"
13 #endif /* __ACE_INLINE__ */
15 #include "ace/Log_Category.h"
17 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
19 void
20 ACE_RW_Mutex::dump () const
22 #if defined (ACE_HAS_DUMP)
23 // ACE_TRACE ("ACE_RW_Mutex::dump");
25 ACELIB_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
26 ACELIB_DEBUG ((LM_DEBUG, ACE_TEXT ("\n")));
27 ACELIB_DEBUG ((LM_DEBUG, ACE_END_DUMP));
28 #endif /* ACE_HAS_DUMP */
31 ACE_RW_Mutex::ACE_RW_Mutex (int type, const ACE_TCHAR *name, void *arg)
32 : removed_ (false)
34 // ACE_TRACE ("ACE_RW_Mutex::ACE_RW_Mutex");
35 if (ACE_OS::rwlock_init (&this->lock_, type, name, arg) != 0)
36 ACELIB_ERROR ((LM_ERROR,
37 ACE_TEXT ("%p\n"),
38 ACE_TEXT ("ACE_RW_Mutex::ACE_RW_Mutex")));
41 ACE_RW_Mutex::~ACE_RW_Mutex ()
43 // ACE_TRACE ("ACE_RW_Mutex::~ACE_RW_Mutex");
44 this->remove ();
47 ACE_END_VERSIONED_NAMESPACE_DECL
49 #endif /* ACE_HAS_THREADS */