(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.4 and 1.5

version 1.4, 2006/08/09 21:12:42 version 1.5, 2006/08/21 08:48:20
Line 91 
Line 91 
 { {
     PEGASUS_DEBUG_ASSERT(_magic);     PEGASUS_DEBUG_ASSERT(_magic);
  
     switch (pthread_mutex_trylock(&_rep.mutex))      int r = pthread_mutex_trylock(&_rep.mutex);
       if (r == -1)
           r=errno;
       switch (r)
     {     {
         case 0:         case 0:
 #if defined(PEGASUS_DEBUG) #if defined(PEGASUS_DEBUG)
Line 126 
Line 129 
  
     for (;;)     for (;;)
     {     {
         switch (pthread_mutex_trylock(&_rep.mutex))          int r=pthread_mutex_trylock(&_rep.mutex);
           if (r == -1)
               r = errno;
           switch (r)
         {         {
             case 0:             case 0:
 #if defined(PEGASUS_DEBUG) #if defined(PEGASUS_DEBUG)


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2