(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.9 and 1.10

version 1.9, 2007/05/11 17:55:03 version 1.10, 2007/06/05 09:44:14
Line 57 
Line 57 
         wait.tv_nsec = remwait.tv_nsec;         wait.tv_nsec = remwait.tv_nsec;
     }     }
  
 #elif defined(PEGASUS_PLATFORM_OS400_ISERIES_IBM)  
   
    int loop;  
    int microsecs = msec * 1000; /* convert from milliseconds to microseconds */  
   
    if (microsecs < 1000000)  
        usleep(microsecs);  
    else  
    {  
        loop = microsecs / 1000000;  
        for (int i = 0; i < loop; i++)  
            usleep(1000000);  
        if ((loop*1000000) < microsecs)  
            usleep(microsecs - (loop*1000000));  
    }  
   
 #elif defined(PEGASUS_OS_TYPE_WINDOWS) #elif defined(PEGASUS_OS_TYPE_WINDOWS)
  
     if (msec == 0)     if (msec == 0)


Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2