(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.1.2.6 and 1.1.2.7

version 1.1.2.6, 2006/07/31 17:37:18 version 1.1.2.7, 2006/08/02 07:26:35
Line 92 
Line 92 
  
 #elif defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) #elif defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)
     int seconds;     int seconds;
     int microsecs = msec * 1000;      if (msec < 1000)
   
     if (microsecs < 1000000)  
     {     {
         usleep(microsecs/2);          usleep(msec*1000);
         pthread_testintr();  
         usleep(microsecs/2);  
     }     }
     else     else
     {     {
         // sleep for loop seconds         // sleep for loop seconds
         seconds = microsecs / 1000000;          sleep(msec / 1000);
         sleep(seconds);          // Usleep the remaining micro seconds
           usleep( (msec*1000) % 1000000 );
         // Usleep the remaining time  
         if ((seconds*1000000) < microsecs)  
             usleep(microsecs - (seconds*1000000));  
     }     }
 #elif defined(PEGASUS_OS_VMS) #elif defined(PEGASUS_OS_VMS)
  


Legend:
Removed from v.1.1.2.6  
changed lines
  Added in v.1.1.2.7

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2