(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.21 and 1.22

version 1.21, 2012/12/10 12:57:28 version 1.22, 2013/02/13 18:21:14
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 209 
Line 207 
     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 282 
Line 275 
     _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.21  
changed lines
  Added in v.1.22

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2