(file) Return to Threads.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/Threads.h between version 1.12 and 1.15.2.3

version 1.12, 2007/01/11 16:21:54 version 1.15.2.3, 2008/06/26 12:02:52
Line 42 
Line 42 
  
 // ATTN: can we consolidate these someplace? // ATTN: can we consolidate these someplace?
  
 #if defined(PEGASUS_HAVE_PTHREADS)  #ifdef PEGASUS_OS_ZOS
 # if defined(PEGASUS_PLATFORM_OS400_ISERIES_IBM)  # include <sched.h>
 # define _MULTI_THREADED // Is this really necessary?  
 # endif # endif
   #if defined(PEGASUS_HAVE_PTHREADS)
 # include <pthread.h> # include <pthread.h>
 # include <errno.h> # include <errno.h>
 # include <sys/time.h> # include <sys/time.h>
Line 56 
Line 56 
 # error "<Pegasus/Common/Threads.h>: not implemented" # error "<Pegasus/Common/Threads.h>: not implemented"
 #endif #endif
  
   #if defined(PEGASUS_PLATFORM_SOLARIS_IX86_CC) || \
       defined(PEGASUS_PLATFORM_SOLARIS_X86_64_CC) || \
       defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC)
   # include <string.h>
   # include <stdio.h>
   #endif
   
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 //============================================================================== //==============================================================================
Line 218 
Line 225 
 inline void Threads::yield() inline void Threads::yield()
 { {
 #if defined(PEGASUS_PLATFORM_AIX_RS_IBMCXX) || \ #if defined(PEGASUS_PLATFORM_AIX_RS_IBMCXX) || \
       defined(PEGASUS_PLATFORM_PASE_ISERIES_IBMCXX) || \
     defined(PEGASUS_PLATFORM_HPUX_ACC) || \     defined(PEGASUS_PLATFORM_HPUX_ACC) || \
     defined(PEGASUS_PLATFORM_OS400_ISERIES_IBM) || \  
     defined(PEGASUS_PLATFORM_TRU64_ALPHA_DECCXX) || \     defined(PEGASUS_PLATFORM_TRU64_ALPHA_DECCXX) || \
     defined(PEGASUS_OS_VMS) || \     defined(PEGASUS_OS_VMS) || \
     defined(PEGASUS_OS_ZOS) || \     defined(PEGASUS_OS_ZOS) || \
     defined(PEGASUS_OS_DARWIN)      defined(PEGASUS_OS_DARWIN) || \
       defined(PEGASUS_PLATFORM_SOLARIS_IX86_CC) || \
       defined(PEGASUS_PLATFORM_SOLARIS_X86_64_CC) || \
       defined(PEGASUS_PLATFORM_SOLARIS_SPARC_CC)
     sched_yield();     sched_yield();
 #else #else
     pthread_yield();     pthread_yield();
Line 247 
Line 257 
  
 inline ThreadId Threads::id(const ThreadType& x) inline ThreadId Threads::id(const ThreadType& x)
 { {
     ThreadId tid;      ThreadId tid = { { 0 } };
  
 #if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM) #if defined(PEGASUS_PLATFORM_ZOS_ZSERIES_IBM)
     const char* s = x.thread.__;     const char* s = x.thread.__;


Legend:
Removed from v.1.12  
changed lines
  Added in v.1.15.2.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2