(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.7 and 1.8

version 1.7, 2007/01/11 16:21:54 version 1.8, 2007/02/18 05:28:26
Line 47 
Line 47 
 { {
 #if defined(PEGASUS_HAVE_NANOSLEEP) #if defined(PEGASUS_HAVE_NANOSLEEP)
  
     struct timespec wait;      struct timespec wait, remwait;
     wait.tv_sec = msec / 1000;     wait.tv_sec = msec / 1000;
     wait.tv_nsec = (msec % 1000) * 1000000;     wait.tv_nsec = (msec % 1000) * 1000000;
     nanosleep(&wait, NULL);  
       while ((nanosleep(&wait, &remwait) == -1) && (errno == EINTR))
       {
           wait.tv_sec = remwait.tv_sec;
           wait.tv_nsec = remwait.tv_nsec;
       }
  
 #elif defined(PEGASUS_PLATFORM_OS400_ISERIES_IBM) #elif defined(PEGASUS_PLATFORM_OS400_ISERIES_IBM)
  


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

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2