|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r55318 - in sandbox/fmhess: boost/generic_ptr libs/generic_ptr/test
From: fmhess_at_[hidden]
Date: 2009-07-31 15:15:39
Author: fmhess
Date: 2009-07-31 15:15:38 EDT (Fri, 31 Jul 2009)
New Revision: 55318
URL: http://svn.boost.org/trac/boost/changeset/55318
Log:
Modified some comments.
Text files modified:
sandbox/fmhess/boost/generic_ptr/cloning.hpp | 1 -
sandbox/fmhess/boost/generic_ptr/monitor.hpp | 1 -
sandbox/fmhess/libs/generic_ptr/test/cloning_monitor_test.cpp | 2 +-
3 files changed, 1 insertions(+), 3 deletions(-)
Modified: sandbox/fmhess/boost/generic_ptr/cloning.hpp
==============================================================================
--- sandbox/fmhess/boost/generic_ptr/cloning.hpp (original)
+++ sandbox/fmhess/boost/generic_ptr/cloning.hpp 2009-07-31 15:15:38 EDT (Fri, 31 Jul 2009)
@@ -41,7 +41,6 @@
{
return GenericPointer(new_clone(get_pointer(p)));
}
- //FIXME: add similar delete_clone functions
namespace detail
{
Modified: sandbox/fmhess/boost/generic_ptr/monitor.hpp
==============================================================================
--- sandbox/fmhess/boost/generic_ptr/monitor.hpp (original)
+++ sandbox/fmhess/boost/generic_ptr/monitor.hpp 2009-07-31 15:15:38 EDT (Fri, 31 Jul 2009)
@@ -222,7 +222,6 @@
using boost::generic_ptr::new_clone;
return monitor<GenericPointer, Mutex>(new_clone(p.get()));
}
- // FIXME: add similar delete_clone overload
} // namespace generic_ptr
} // namespace boost
Modified: sandbox/fmhess/libs/generic_ptr/test/cloning_monitor_test.cpp
==============================================================================
--- sandbox/fmhess/libs/generic_ptr/test/cloning_monitor_test.cpp (original)
+++ sandbox/fmhess/libs/generic_ptr/test/cloning_monitor_test.cpp 2009-07-31 15:15:38 EDT (Fri, 31 Jul 2009)
@@ -47,7 +47,7 @@
cloning_monitor_type p0(new int());
BOOST_TEST(p0.get().get_mutex_ref().lock_count == 0);
BOOST_TEST(p0.get().get_mutex_ref().unlock_count == 0);
- cloning_monitor_type p1(p0);
+ cloning_monitor_type p1(p0); // should lock p0's mutex during copy
BOOST_TEST(p0.get().get_mutex_ref().lock_count == 1);
BOOST_TEST(p0.get().get_mutex_ref().unlock_count == 1);
BOOST_TEST(p1.get().get_mutex_ref().lock_count == 0);
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