Ticket #8885: patchfile

File patchfile, 662 bytes (added by carsten.becker@…, 9 years ago)

possible patch for ticket #8885

Line 
1Index: boost/asio/detail/epoll_reactor.hpp
2===================================================================
3--- boost/asio/detail/epoll_reactor.hpp (Revision 85130)
4+++ boost/asio/detail/epoll_reactor.hpp (Arbeitskopie)
5@@ -64,7 +64,12 @@
6 bool shutdown_;
7
8 BOOST_ASIO_DECL descriptor_state();
9- void set_ready_events(uint32_t events) { task_result_ = events; }
10+
11+ void set_ready_events(uint32_t events) {
12+ mutex::scoped_lock lock(mutex_);
13+ task_result_ = events;
14+ }
15+
16 BOOST_ASIO_DECL operation* perform_io(uint32_t events);
17 BOOST_ASIO_DECL static void do_complete(
18 io_service_impl* owner, operation* base,