Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-02-22 17:43:54


Author: chris_kohlhoff
Date: 2008-02-22 17:43:54 EST (Fri, 22 Feb 2008)
New Revision: 43377
URL: http://svn.boost.org/trac/boost/changeset/43377

Log:
Use the correct vector of timer queues when dispatching timers.

Text files modified:
   trunk/boost/asio/detail/win_iocp_io_service.hpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/asio/detail/win_iocp_io_service.hpp
==============================================================================
--- trunk/boost/asio/detail/win_iocp_io_service.hpp (original)
+++ trunk/boost/asio/detail/win_iocp_io_service.hpp 2008-02-22 17:43:54 EST (Fri, 22 Feb 2008)
@@ -421,11 +421,11 @@
         {
           boost::asio::detail::mutex::scoped_lock lock(timer_mutex_);
           timer_queues_copy_ = timer_queues_;
- for (std::size_t i = 0; i < timer_queues_.size(); ++i)
+ for (std::size_t i = 0; i < timer_queues_copy_.size(); ++i)
           {
- timer_queues_[i]->dispatch_timers();
- timer_queues_[i]->dispatch_cancellations();
- timer_queues_[i]->cleanup_timers();
+ timer_queues_copy_[i]->dispatch_timers();
+ timer_queues_copy_[i]->dispatch_cancellations();
+ timer_queues_copy_[i]->cleanup_timers();
           }
         }
         catch (...)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk