Changeset 846
- Timestamp:
- 01/17/08 20:48:17
- Files:
-
- trunk/src/vpb/ThreadPool.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/vpb/ThreadPool.cpp
r845 r846 46 46 osg::GraphicsContext* sharedContext = 0; 47 47 48 _maxNumberOfOperationsInQueue = 512;48 _maxNumberOfOperationsInQueue = 128; 49 49 50 50 for(unsigned int i=0; i<_numThreads; ++i) … … 147 147 while (_operationQueue->getNumOperationsInQueue() >= _maxNumberOfOperationsInQueue) 148 148 { 149 log(osg::NOTICE,"ThreadPool::run() Waiting for operation queue to clear."); 150 OpenThreads::Thread::YieldCurrentThread(); 149 log(osg::INFO,"ThreadPool::run() Waiting for operation queue to clear."); 150 151 // Wait for half a seocnd for the queue to clear. 152 OpenThreads::Thread::microSleep(500000); 151 153 } 152 154
