Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79525 - in trunk/boost/asio: . detail detail/impl
From: chris_at_[hidden]
Date: 2012-07-15 00:38:04


Author: chris_kohlhoff
Date: 2012-07-15 00:38:03 EDT (Sun, 15 Jul 2012)
New Revision: 79525
URL: http://svn.boost.org/trac/boost/changeset/79525

Log:
Make strand destruction a no-op, to allow strand objects to be destroyed after their associated io_service has been destroyed.
Text files modified:
   trunk/boost/asio/detail/impl/strand_service.hpp | 5 -----
   trunk/boost/asio/detail/strand_service.hpp | 3 ---
   trunk/boost/asio/strand.hpp | 1 -
   3 files changed, 0 insertions(+), 9 deletions(-)

Modified: trunk/boost/asio/detail/impl/strand_service.hpp
==============================================================================
--- trunk/boost/asio/detail/impl/strand_service.hpp (original)
+++ trunk/boost/asio/detail/impl/strand_service.hpp 2012-07-15 00:38:03 EDT (Sun, 15 Jul 2012)
@@ -50,11 +50,6 @@
   }
 };
 
-inline void strand_service::destroy(strand_service::implementation_type& impl)
-{
- impl = 0;
-}
-
 template <typename Handler>
 void strand_service::dispatch(strand_service::implementation_type& impl,
     Handler handler)

Modified: trunk/boost/asio/detail/strand_service.hpp
==============================================================================
--- trunk/boost/asio/detail/strand_service.hpp (original)
+++ trunk/boost/asio/detail/strand_service.hpp 2012-07-15 00:38:03 EDT (Sun, 15 Jul 2012)
@@ -84,9 +84,6 @@
   // Construct a new strand implementation.
   BOOST_ASIO_DECL void construct(implementation_type& impl);
 
- // Destroy a strand implementation.
- void destroy(implementation_type& impl);
-
   // Request the io_service to invoke the given handler.
   template <typename Handler>
   void dispatch(implementation_type& impl, Handler handler);

Modified: trunk/boost/asio/strand.hpp
==============================================================================
--- trunk/boost/asio/strand.hpp (original)
+++ trunk/boost/asio/strand.hpp 2012-07-15 00:38:03 EDT (Sun, 15 Jul 2012)
@@ -105,7 +105,6 @@
    */
   ~strand()
   {
- service_.destroy(impl_);
   }
 
   /// Get the io_service associated with the strand.


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