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

Diff for /pegasus/src/Pegasus/Common/Threads.cpp between version 1.18 and 1.19

version 1.18, 2008/12/02 09:00:53 version 1.19, 2009/09/03 10:23:00
Line 172 
Line 172 
     // Initialize thread attributes:     // Initialize thread attributes:
  
     pthread_attr_t attr;     pthread_attr_t attr;
     pthread_attr_init(&attr);      int rc = pthread_attr_init(&attr);
       if(rc != 0)
       {
           return rc;
       }
  
     // Detached:     // Detached:
  
Line 211 
Line 215 
  
     // Create thread:     // Create thread:
  
     int rc = pthread_create(&thread.thread, &attr, start, arg);      rc = pthread_create(&thread.thread, &attr, start, arg);
  
     if (rc != 0)     if (rc != 0)
     {     {
         thread = ThreadType();         thread = ThreadType();
         return rc;  
     }     }
  
     // Destroy attributes now.     // Destroy attributes now.
Line 225 
Line 228 
  
     // Return:     // Return:
  
     return 0;      return rc;
 } }
  
 ThreadType Threads::self() ThreadType Threads::self()


Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2