Ticket #9460: fifo_worker.hpp.patch
File fifo_worker.hpp.patch, 834 bytes (added by , 9 years ago) |
---|
-
fifo_worker.hpp
34 34 # endif 35 35 36 36 # include <boost/thread/mutex.hpp> 37 # include <boost/thread/lock_types.hpp> 37 38 # include <boost/thread/condition.hpp> 38 39 39 40 # ifdef BOOST_MSVC … … 80 81 } 81 82 82 83 #ifdef BOOST_HAS_THREADS 83 mutex::scoped_locklock( mutex_ );84 boost::unique_lock<boost::mutex> lock( mutex_ ); 84 85 #endif 85 86 86 87 workQueue_.push_back( work_item() ); … … 143 144 work_item dequeue_item() 144 145 { 145 146 #ifdef BOOST_HAS_THREADS 146 mutex::scoped_locklock( mutex_ );147 boost::unique_lock<boost::mutex> lock( mutex_ ); 147 148 148 149 if ( !waitOnEmptyQueue_ && workQueue_.empty() ) 149 150 {