(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.5 and 1.6

version 1.5, 2006/08/21 08:48:20 version 1.6, 2006/08/21 14:46:13
Line 64 
Line 64 
 #endif #endif
 } }
  
   Mutex::Mutex(RecursiveTag)
   {
       once(&_once, _init_attr);
       pthread_mutex_init(&_rep.mutex, &_attr);
   #if defined(PEGASUS_DEBUG)
       _rep.count = 0;
   #endif
   }
   
   Mutex::Mutex(NonRecursiveTag)
   {
       pthread_mutex_init(&_rep.mutex, NULL);
   #if defined(PEGASUS_DEBUG)
       _rep.count = 0;
   #endif
   }
   
 Mutex::~Mutex() Mutex::~Mutex()
 { {
     PEGASUS_DEBUG_ASSERT(_magic);     PEGASUS_DEBUG_ASSERT(_magic);
Line 182 
Line 199 
  
 Mutex::Mutex() Mutex::Mutex()
 { {
   Mutex::Mutex(RecursiveTag)
   {
       _rep.handle = CreateMutex(NULL, FALSE, NULL);
   #if defined(PEGASUS_DEBUG)
       _rep.count = 0;
   #endif
   }
   
   Mutex::Mutex(NonRecursiveTag)
   {
       _rep.handle = CreateMutex(NULL, FALSE, NULL);
   #if defined(PEGASUS_DEBUG)
       _rep.count = 0;
   #endif
   }
   
     _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;


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2