4 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
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
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
)
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
,
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");
47 ACE_END_VERSIONED_NAMESPACE_DECL
49 #endif /* ACE_HAS_THREADS */