(file) Return to Mutex.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Mutex.cpp between version 1.6 and 1.7

version 1.6, 2006/08/21 14:46:13 version 1.7, 2006/08/21 15:46:16
Line 197 
Line 197 
  
 #if defined(PEGASUS_HAVE_WINDOWS_THREADS) #if defined(PEGASUS_HAVE_WINDOWS_THREADS)
  
 Mutex::Mutex()  static inline void _initialize(MutexRep& rep)
 {  
 Mutex::Mutex(RecursiveTag)  
 { {
     _rep.handle = CreateMutex(NULL, FALSE, NULL);      rep.handle = CreateMutex(NULL, FALSE, NULL);
 #if defined(PEGASUS_DEBUG) #if defined(PEGASUS_DEBUG)
     _rep.count = 0;      rep.count = 0;
 #endif #endif
 } }
  
 Mutex::Mutex(NonRecursiveTag)  Mutex::Mutex()
 { {
     _rep.handle = CreateMutex(NULL, FALSE, NULL);      _initialize(_rep);
 #if defined(PEGASUS_DEBUG)  
     _rep.count = 0;  
 #endif  
 } }
  
     _rep.handle = CreateMutex(NULL, FALSE, NULL);  Mutex::Mutex(RecursiveTag)
 #if defined(PEGASUS_DEBUG)  {
     _rep.count = 0;      _initialize(_rep);
 #endif  }
   
   Mutex::Mutex(NonRecursiveTag)
   {
       _initialize(_rep);
 } }
  
 Mutex::~Mutex() Mutex::~Mutex()


Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2