Ticket #8354: test.patch

File test.patch, 720 bytes (added by Tanner Sansbury <twsansbury@…>, 10 years ago)

Patch task_io_service to increase changes of reproducing concurrency problem.

  • task_io_service.ipp

     
    2525#include <boost/asio/detail/task_io_service.hpp>
    2626#include <boost/asio/detail/task_io_service_thread_info.hpp>
    2727
     28#include <boost/chrono.hpp>
     29#include <boost/thread.hpp>
     30
    2831#include <boost/asio/detail/push_options.hpp>
    2932
    3033namespace boost {
     
    448451      // queue is empty and we're not polling, otherwise we want to return
    449452      // as soon as possible.
    450453      task_->run(false, this_thread.private_op_queue);
     454      boost::this_thread::sleep_for(boost::chrono::seconds(3));
    451455    }
    452456
    453457    o = op_queue_.front();