Changeset 421 for experimental/Threading/Threading/ChannelWorker.cpp
- Timestamp:
- Oct 20, 2012, 1:07:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experimental/Threading/Threading/ChannelWorker.cpp
r420 r421 3 3 4 4 5 ChannelWorker::ChannelWorker( int numThreads, OpenThreads::Barrier& syncBarrier)6 : _ numThreads(numThreads), _syncBarrier(syncBarrier), _done(false)5 ChannelWorker::ChannelWorker() 6 : _done(false) 7 7 { 8 8 OSG_ALWAYS<<"ChannelWorker instantiated."<<std::endl; … … 28 28 29 29 } while (!testCancel() && !_done); // repeat as long it is canceld or set as Done 30 31 32 //_syncBarrier.block(_numThreads); // Sync the threads.33 34 30 } 35 31 … … 54 50 // commenting out debug info as it was cashing crash on exit, presumable 55 51 // due to OSG_NOTIFY or std::cout destructing earlier than this destructor. 56 OSG_ALWAYS<<" Waiting for ChannelWorker to cancel "<<this<<std::endl;52 //OSG_ALWAYS<<" Waiting for ChannelWorker to cancel "<<this<<std::endl; 57 53 OpenThreads::Thread::YieldCurrentThread(); 58 54 }
Note: See TracChangeset
for help on using the changeset viewer.