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

Diff for /pegasus/src/Pegasus/Common/Thread.cpp between version 1.100.2.4 and 1.100.2.5

version 1.100.2.4, 2008/10/23 18:15:54 version 1.100.2.5, 2008/10/23 18:58:28
Line 219 
Line 219 
 /* /*
 ATTN: remove this! ATTN: remove this!
 */ */
   #if 1
 static Uint32 _num_threads = 0; static Uint32 _num_threads = 0;
 static Mutex _num_threads_mutex; static Mutex _num_threads_mutex;
   #endif
  
 Thread::Thread( Thread::Thread(
     ThreadReturnType(PEGASUS_THREAD_CDECL* start) (void*),     ThreadReturnType(PEGASUS_THREAD_CDECL* start) (void*),
Line 238 
Line 240 
 /* /*
 ATTN: remove this! ATTN: remove this!
 */ */
   #if 1
     Uint32 num_threads;     Uint32 num_threads;
     _num_threads_mutex.lock();     _num_threads_mutex.lock();
     _num_threads++;     _num_threads++;
     num_threads = _num_threads;     num_threads = _num_threads;
       printf("Thread::Thread(): num_threads=%u\n", num_threads);
     _num_threads_mutex.unlock();     _num_threads_mutex.unlock();
     //printf("Thread::Thread(): num_threads=%u\n", num_threads);  #endif
  
     Threads::clear(_handle.thid);     Threads::clear(_handle.thid);
 } }
Line 253 
Line 257 
 /* /*
 ATTN: remove this! ATTN: remove this!
 */ */
   #if 1
     Uint32 num_threads;     Uint32 num_threads;
     _num_threads_mutex.lock();     _num_threads_mutex.lock();
     _num_threads--;     _num_threads--;
     num_threads = _num_threads;     num_threads = _num_threads;
       printf("Thread::~Thread(): num_threads=%u\n", num_threads);
     _num_threads_mutex.unlock();     _num_threads_mutex.unlock();
   <<<<<<< Thread.cpp
   #endif
   =======
     //printf("Thread::~Thread(): num_threads=%u\n", num_threads);     //printf("Thread::~Thread(): num_threads=%u\n", num_threads);
   >>>>>>> 1.100.2.4
  
     try     try
     {     {


Legend:
Removed from v.1.100.2.4  
changed lines
  Added in v.1.100.2.5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2