(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.20.8.1 and 1.21

version 1.20.8.1, 2013/06/03 22:35:14 version 1.21, 2012/12/10 12:57:28
Line 175 
Line 175 
  
     static void exit(ThreadReturnType rc);     static void exit(ThreadReturnType rc);
  
       static void cancel(ThreadType th);
   
     static void yield();     static void yield();
  
     static void sleep(int msec);     static void sleep(int msec);
Line 207 
Line 209 
     pthread_exit(rc);     pthread_exit(rc);
 } }
  
   inline void Threads::cancel(ThreadType th)
   {
       pthread_cancel(th.thread);
   }
   
 inline void Threads::yield() inline void Threads::yield()
 { {
 #ifdef PEGASUS_OS_LINUX #ifdef PEGASUS_OS_LINUX
Line 275 
Line 282 
     _endthreadex(rc);     _endthreadex(rc);
 } }
  
   inline void Threads::cancel(ThreadType th, ThreadReturnType rc)
   {
       TerminateThread(th.handle, rc);
   }
   
 inline void Threads::yield() inline void Threads::yield()
 { {
     Sleep(0);     Sleep(0);


Legend:
Removed from v.1.20.8.1  
changed lines
  Added in v.1.21

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2