Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84064 - in trunk: boost/thread libs/thread/doc
From: vicente.botet_at_[hidden]
Date: 2013-04-28 08:10:25


Author: viboes
Date: 2013-04-28 08:10:24 EDT (Sun, 28 Apr 2013)
New Revision: 84064
URL: http://svn.boost.org/trac/boost/changeset/84064

Log:
Thread: make barrier not copyable.
Text files modified:
   trunk/boost/thread/barrier.hpp | 5 ++++-
   trunk/libs/thread/doc/barrier.qbk | 3 +++
   2 files changed, 7 insertions(+), 1 deletions(-)

Modified: trunk/boost/thread/barrier.hpp
==============================================================================
--- trunk/boost/thread/barrier.hpp (original)
+++ trunk/boost/thread/barrier.hpp 2013-04-28 08:10:24 EDT (Sun, 28 Apr 2013)
@@ -9,8 +9,9 @@
 #define BOOST_BARRIER_JDM030602_HPP
 
 #include <boost/thread/detail/config.hpp>
-#include <boost/throw_exception.hpp>
+#include <boost/thread/detail/delete.hpp>
 
+#include <boost/throw_exception.hpp>
 #include <boost/thread/mutex.hpp>
 #include <boost/thread/lock_types.hpp>
 #include <boost/thread/condition_variable.hpp>
@@ -25,6 +26,8 @@
     class barrier
     {
     public:
+ BOOST_THREAD_NO_COPYABLE( barrier )
+
         barrier(unsigned int count)
             : m_threshold(count), m_count(count), m_generation(0)
         {

Modified: trunk/libs/thread/doc/barrier.qbk
==============================================================================
--- trunk/libs/thread/doc/barrier.qbk (original)
+++ trunk/libs/thread/doc/barrier.qbk 2013-04-28 08:10:24 EDT (Sun, 28 Apr 2013)
@@ -18,6 +18,9 @@
     class barrier
     {
     public:
+ barrier(barrier const&) = delete;
+ barrier& operator=(barrier const&) = delete;
+
         barrier(unsigned int count);
         ~barrier();
 


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