2 * @file Thread_Mutex.cpp
4 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
7 #include "ace/Thread_Mutex.h"
9 #if defined (ACE_HAS_THREADS)
11 #if !defined (__ACE_INLINE__)
12 #include "ace/Thread_Mutex.inl"
13 #endif /* __ACE_INLINE__ */
15 #include "ace/Log_Category.h"
16 #include "ace/Malloc_T.h"
18 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
20 ACE_ALLOC_HOOK_DEFINE(ACE_Thread_Mutex
)
23 ACE_Thread_Mutex::dump () const
25 #if defined (ACE_HAS_DUMP)
26 // ACE_TRACE ("ACE_Thread_Mutex::dump");
28 ACELIB_DEBUG ((LM_DEBUG
, ACE_BEGIN_DUMP
, this));
29 ACELIB_DEBUG ((LM_DEBUG
, ACE_TEXT ("\n")));
30 ACELIB_DEBUG ((LM_DEBUG
, ACE_END_DUMP
));
31 #endif /* ACE_HAS_DUMP */
34 ACE_Thread_Mutex::~ACE_Thread_Mutex ()
36 // ACE_TRACE ("ACE_Thread_Mutex::~ACE_Thread_Mutex");
40 ACE_Thread_Mutex::ACE_Thread_Mutex (const ACE_TCHAR
*name
, ACE_mutexattr_t
*arg
)
43 // ACE_TRACE ("ACE_Thread_Mutex::ACE_Thread_Mutex");
45 if (ACE_OS::thread_mutex_init (&this->lock_
,
49 ACELIB_ERROR ((LM_ERROR
,
51 ACE_TEXT ("ACE_Thread_Mutex::ACE_Thread_Mutex")));
54 ACE_END_VERSIONED_NAMESPACE_DECL
56 #endif /* ACE_HAS_THREADS */