Boost C++ Libraries: Ticket #8885: boost asio epoll reactor method "set_ready_events" not protected by lock https://svn.boost.org/trac10/ticket/8885 <p> Suggested patch: Index: boost/asio/detail/epoll_reactor.hpp =================================================================== --- boost/asio/detail/epoll_reactor.hpp (Revision 85130) +++ boost/asio/detail/epoll_reactor.hpp (Arbeitskopie) @@ -64,7 +64,12 @@ </p> <blockquote> <p> bool shutdown_; </p> </blockquote> <p> </p> <blockquote> <p> BOOST_ASIO_DECL descriptor_state(); </p> </blockquote> <ul><li> void set_ready_events(uint32_t events) { task_result_ = events; } </li></ul><p> + + void set_ready_events(uint32_t events) { + mutex::scoped_lock lock(mutex_); + task_result_ = events; + } + </p> <blockquote> <p> BOOST_ASIO_DECL operation* perform_io(uint32_t events); BOOST_ASIO_DECL static void do_complete( </p> <blockquote> <p> io_service_impl* owner, operation* base, </p> </blockquote> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8885 Trac 1.4.3 carsten.becker@… Tue, 23 Jul 2013 10:00:56 GMT attachment set https://svn.boost.org/trac10/ticket/8885 https://svn.boost.org/trac10/ticket/8885 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">patchfile</span> </li> </ul> <p> possible patch for ticket <a class="new ticket" href="https://svn.boost.org/trac10/ticket/8885" title="#8885: Bugs: boost asio epoll reactor method &#34;set_ready_events&#34; not protected by lock (new)">#8885</a> </p> Ticket carsten.becker@… Tue, 23 Jul 2013 10:30:39 GMT component changed; owner set https://svn.boost.org/trac10/ticket/8885#comment:1 https://svn.boost.org/trac10/ticket/8885#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">chris_kohlhoff</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">asio</span> </li> </ul> Ticket