Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55655 - sandbox/fmhess/boost/generic_ptr
From: fmhess_at_[hidden]
Date: 2009-08-18 15:55:50


Author: fmhess
Date: 2009-08-18 15:55:49 EDT (Tue, 18 Aug 2009)
New Revision: 55655
URL: http://svn.boost.org/trac/boost/changeset/55655

Log:
Fixed value returned from release method().

Text files modified:
   sandbox/fmhess/boost/generic_ptr/monitor_locks.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: sandbox/fmhess/boost/generic_ptr/monitor_locks.hpp
==============================================================================
--- sandbox/fmhess/boost/generic_ptr/monitor_locks.hpp (original)
+++ sandbox/fmhess/boost/generic_ptr/monitor_locks.hpp 2009-08-18 15:55:49 EDT (Tue, 18 Aug 2009)
@@ -107,9 +107,10 @@
         }
         MonitorPtr release()
         {
+ MonitorPtr result = _mon;
           _mon.reset();
           _lock.release();
- return _mon;
+ return result;
         }
 
         // monitor extensions to lock interface


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