00001 // Guard_T.cpp,v 4.3 2005/10/28 16:14:52 ossama Exp 00002 00003 #ifndef ACE_GUARD_T_CPP 00004 #define ACE_GUARD_T_CPP 00005 00006 #include "ace/Guard_T.h" 00007 00008 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00009 # pragma once 00010 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00011 00012 #if !defined (__ACE_INLINE__) 00013 #include "ace/Guard_T.inl" 00014 #endif /* __ACE_INLINE__ */ 00015 00016 #if defined (ACE_HAS_DUMP) 00017 # include "ace/Log_Msg.h" 00018 #endif /* ACE_HAS_DUMP */ 00019 00020 // **************************************************************** 00021 00022 ACE_BEGIN_VERSIONED_NAMESPACE_DECL 00023 00024 // ACE_ALLOC_HOOK_DEFINE(ACE_Guard) 00025 00026 template <class ACE_LOCK> void 00027 ACE_Guard<ACE_LOCK>::dump (void) const 00028 { 00029 #if defined (ACE_HAS_DUMP) 00030 // ACE_TRACE ("ACE_Guard<ACE_LOCK>::dump"); 00031 00032 ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this)); 00033 ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("mutex_ = %x\n"), this->lock_)); 00034 ACE_DEBUG ((LM_DEBUG, ACE_LIB_TEXT ("owner_ = %d\n"), this->owner_)); 00035 ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP)); 00036 #endif /* ACE_HAS_DUMP */ 00037 } 00038 00039 // ACE_ALLOC_HOOK_DEFINE(ACE_Write_Guard) 00040 00041 template <class ACE_LOCK> void 00042 ACE_Write_Guard<ACE_LOCK>::dump (void) const 00043 { 00044 #if defined (ACE_HAS_DUMP) 00045 // ACE_TRACE ("ACE_Write_Guard<ACE_LOCK>::dump"); 00046 ACE_Guard<ACE_LOCK>::dump (); 00047 #endif /* ACE_HAS_DUMP */ 00048 } 00049 00050 // ACE_ALLOC_HOOK_DEFINE(ACE_Read_Guard) 00051 00052 template <class ACE_LOCK> void 00053 ACE_Read_Guard<ACE_LOCK>::dump (void) const 00054 { 00055 // ACE_TRACE ("ACE_Read_Guard<ACE_LOCK>::dump"); 00056 ACE_Guard<ACE_LOCK>::dump (); 00057 } 00058 00059 ACE_END_VERSIONED_NAMESPACE_DECL 00060 00061 #endif /* ACE_GUARD_T_CPP */