Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

RW_Process_Mutex.cpp

Go to the documentation of this file.
00001 #include "ace_pch.h"
00002 // $Id: RW_Process_Mutex.cpp,v 1.1.1.1.40.1 2003/03/13 19:44:22 chad Exp $
00003 
00004 #include "ace/RW_Process_Mutex.h"
00005 #include "ace/Log_Msg.h"
00006 #include "ace/ACE.h"
00007 
00008 ACE_RCSID(ace, RW_Process_Mutex, "$Id: RW_Process_Mutex.cpp,v 1.1.1.1.40.1 2003/03/13 19:44:22 chad Exp $")
00009 
00010 #if !defined (__ACE_INLINE__)
00011 #include "ace/RW_Process_Mutex.inl"
00012 #endif /* __ACE_INLINE__ */
00013 
00014 ACE_ALLOC_HOOK_DEFINE(ACE_RW_Process_Mutex)
00015 
00016 const ACE_TCHAR *
00017 ACE_RW_Process_Mutex::unique_name (void)
00018 {
00019   ACE::unique_name (this, this->name_, ACE_UNIQUE_NAME_LEN);
00020   return this->name_;
00021 }
00022 
00023 ACE_RW_Process_Mutex::ACE_RW_Process_Mutex (const ACE_TCHAR *name,
00024                                             int flags)
00025   : lock_ (name ? name : this->unique_name (), flags
00026 #if defined (ACE_WIN32)
00027            , ACE_DEFAULT_OPEN_PERMS)
00028 #else
00029            , S_IRUSR | S_IWUSR)
00030 #endif /* ACE_WIN32 */
00031 {
00032 // ACE_TRACE ("ACE_RW_Process_Mutex::ACE_RW_Process_Mutex");
00033 }
00034 
00035 ACE_RW_Process_Mutex::~ACE_RW_Process_Mutex (void)
00036 {
00037 // ACE_TRACE ("ACE_RW_Process_Mutex::~ACE_RW_Process_Mutex");
00038 }
00039 
00040 void
00041 ACE_RW_Process_Mutex::dump (void) const
00042 {
00043 // ACE_TRACE ("ACE_RW_Process_Mutex::dump");
00044   ACE_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
00045   this->lock_.dump ();
00046   ACE_DEBUG ((LM_DEBUG, ACE_END_DUMP));
00047 }
00048 
00049 //
00050 // These are instantiated both with and without ACE_HAS_THREADS.
00051 //
00052 #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
00053 
00054 // template class ACE_Guard<ACE_RW_Process_Mutex>;
00055 
00056 #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
00057 
00058 // #pragma instantiate ACE_Guard<ACE_RW_Process_Mutex>
00059 
00060 #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */

Generated on Mon Jun 16 11:21:06 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002