Changeset 845
- Timestamp:
- 01/17/08 20:20:29
- Files:
-
- trunk/include/vpb/ThreadPool (modified) (1 diff)
- trunk/src/vpb/ThreadPool.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/include/vpb/ThreadPool
r807 r845 72 72 bool _done; 73 73 osg::ref_ptr<BlockOperation> _blockOp; 74 75 unsigned int _maxNumberOfOperationsInQueue; 74 76 75 77 }; trunk/src/vpb/ThreadPool.cpp
r808 r845 45 45 46 46 osg::GraphicsContext* sharedContext = 0; 47 48 _maxNumberOfOperationsInQueue = 512; 47 49 48 50 for(unsigned int i=0; i<_numThreads; ++i) … … 143 145 } 144 146 147 while (_operationQueue->getNumOperationsInQueue() >= _maxNumberOfOperationsInQueue) 148 { 149 log(osg::NOTICE,"ThreadPool::run() Waiting for operation queue to clear."); 150 OpenThreads::Thread::YieldCurrentThread(); 151 } 152 145 153 _operationQueue->add(op); 146 154 }
