Ticket #9460: fifo_worker.hpp.patch

File fifo_worker.hpp.patch, 834 bytes (added by anonymous, 9 years ago)
  • fifo_worker.hpp

     
    3434#  endif
    3535
    3636#  include <boost/thread/mutex.hpp>
     37#  include <boost/thread/lock_types.hpp>
    3738#  include <boost/thread/condition.hpp>
    3839
    3940#  ifdef BOOST_MSVC
     
    8081      }
    8182
    8283      #ifdef BOOST_HAS_THREADS
    83       mutex::scoped_lock lock( mutex_ );
     84      boost::unique_lock<boost::mutex> lock( mutex_ );
    8485      #endif
    8586
    8687      workQueue_.push_back( work_item() );
     
    143144    work_item dequeue_item()
    144145    {
    145146      #ifdef BOOST_HAS_THREADS
    146       mutex::scoped_lock lock( mutex_ );
     147      boost::unique_lock<boost::mutex> lock( mutex_ );
    147148
    148149      if ( !waitOnEmptyQueue_ && workQueue_.empty() )
    149150      {