(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.11 and 1.13.2.4.2.1

version 1.11, 2007/10/17 20:37:27 version 1.13.2.4.2.1, 2008/07/01 19:28:03
Line 40 
Line 40 
 #if defined(PEGASUS_OS_TYPE_WINDOWS) #if defined(PEGASUS_OS_TYPE_WINDOWS)
 # include <sys/timeb.h> # include <sys/timeb.h>
 #endif #endif
   #if defined(PEGASUS_OS_ZOS)
   # include <unistd.h>
   #endif
   
   #if defined(PEGASUS_OS_ZOS)
   # include <unistd.h>
   #endif
   
   #if defined(PEGASUS_OS_SOLARIS)
   # include <unistd.h>
   #endif
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 78 
Line 89 
     }     }
     while (end.millitm > now.millitm && end.time >= now.time);     while (end.millitm > now.millitm && end.time >= now.time);
  
 #elif defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)  #else
     int seconds;  
     if (msec < 1000)     if (msec < 1000)
     {     {
         usleep(msec*1000);         usleep(msec*1000);
Line 91 
Line 101 
         // Usleep the remaining micro seconds         // Usleep the remaining micro seconds
         usleep( (msec*1000) % 1000000 );         usleep( (msec*1000) % 1000000 );
     }     }
   
 #endif #endif
 } }
  
Line 196 
Line 207 
  
     // Scheduling policy:     // Scheduling policy:
  
 #if defined(PEGASUS_PLATFORM_SOLARIS_SPARC_GNU) || \  #if defined(PEGASUS_OS_SOLARIS)
     defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC)  
 # if defined SUNOS_5_7  
     pthread_attr_setschedpolicy(&attr, SCHED_RR);  
 # else  
     pthread_attr_setschedpolicy(&attr, SCHED_OTHER);     pthread_attr_setschedpolicy(&attr, SCHED_OTHER);
 # endif  
 #endif // PEGASUS_PLATFORM_SOLARIS_SPARC_GNU  #endif /* defined(PEGASUS_OS_SOLARIS) */
  
     // Create thread:     // Create thread:
  


Legend:
Removed from v.1.11  
changed lines
  Added in v.1.13.2.4.2.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2