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

version 1.1.2.4, 2006/07/28 19:02:47 version 1.1.2.5, 2006/07/28 20:46:41
Line 37 
Line 37 
 #include "IDFactory.h" #include "IDFactory.h"
 #include "TSDKey.h" #include "TSDKey.h"
  
   #if defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC)
   # include <sys/timeb.h>
   #endif
   
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 void Threads::sleep(int msec) void Threads::sleep(int msec)
Line 66 
Line 70 
  
 #elif defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC) #elif defined(PEGASUS_PLATFORM_WIN32_IX86_MSVC)
  
     if (ms == 0)      if (msec == 0)
     {     {
         Sleep(0);         Sleep(0);
         return;         return;
Line 74 
Line 78 
  
     struct _timeb end, now;     struct _timeb end, now;
     _ftime( &end );     _ftime( &end );
     end.time += (ms / 1000);      end.time += (msec / 1000);
     ms -= (ms / 1000);      msec -= (msec / 1000);
     end.millitm += ms;      end.millitm += msec;
  
     do     do
     {     {


Legend:
Removed from v.1.1.2.4  
changed lines
  Added in v.1.1.2.5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2