|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86439 - in trunk/boost/thread: . detail
From: vicente.botet_at_[hidden]
Date: 2013-10-26 06:19:38
Author: viboes
Date: 2013-10-26 06:19:38 EDT (Sat, 26 Oct 2013)
New Revision: 86439
URL: http://svn.boost.org/trac/boost/changeset/86439
Log:
Thread: Add BOOST_THREAD_RV when accessing a BOOST_THREAD_RV_REF to be portable.
Text files modified:
trunk/boost/thread/detail/async_func.hpp | 112 ++++++++++++++++++++--------------------
trunk/boost/thread/externally_locked.hpp | 2
trunk/boost/thread/scoped_thread.hpp | 4
trunk/boost/thread/synchronized_value.hpp | 4
4 files changed, 61 insertions(+), 61 deletions(-)
Modified: trunk/boost/thread/detail/async_func.hpp
==============================================================================
--- trunk/boost/thread/detail/async_func.hpp Sat Oct 26 06:13:38 2013 (r86438)
+++ trunk/boost/thread/detail/async_func.hpp 2013-10-26 06:19:38 EDT (Sat, 26 Oct 2013) (r86439)
@@ -61,7 +61,7 @@
{}
BOOST_SYMBOL_VISIBLE
- async_func(BOOST_THREAD_RV_REF(async_func) f) : f_(boost::move(f.f_))
+ async_func(BOOST_THREAD_RV_REF(async_func) f) : f_(boost::move(BOOST_THREAD_RV(f).f_))
{}
result_type operator()()
@@ -135,16 +135,16 @@
BOOST_SYMBOL_VISIBLE
async_func(BOOST_THREAD_RV_REF(async_func) f)
- : fp_(boost::move(f.fp))
- , v0_(boost::move(f.a0))
- , v1_(boost::move(f.a1))
- , v2_(boost::move(f.a2))
- , v3_(boost::move(f.a3))
- , v4_(boost::move(f.a4))
- , v5_(boost::move(f.a5))
- , v6_(boost::move(f.a6))
- , v7_(boost::move(f.a7))
- , v8_(boost::move(f.a8))
+ : fp_(boost::move(BOOST_THREAD_RV(f).fp))
+ , v0_(boost::move(BOOST_THREAD_RV(f).a0))
+ , v1_(boost::move(BOOST_THREAD_RV(f).a1))
+ , v2_(boost::move(BOOST_THREAD_RV(f).a2))
+ , v3_(boost::move(BOOST_THREAD_RV(f).a3))
+ , v4_(boost::move(BOOST_THREAD_RV(f).a4))
+ , v5_(boost::move(BOOST_THREAD_RV(f).a5))
+ , v6_(boost::move(BOOST_THREAD_RV(f).a6))
+ , v7_(boost::move(BOOST_THREAD_RV(f).a7))
+ , v8_(boost::move(BOOST_THREAD_RV(f).a8))
{}
result_type operator()()
@@ -202,15 +202,15 @@
BOOST_SYMBOL_VISIBLE
async_func(BOOST_THREAD_RV_REF(async_func) f)
- : fp_(boost::move(f.fp))
- , v0_(boost::move(f.a0))
- , v1_(boost::move(f.a1))
- , v2_(boost::move(f.a2))
- , v3_(boost::move(f.a3))
- , v4_(boost::move(f.a4))
- , v5_(boost::move(f.a5))
- , v6_(boost::move(f.a6))
- , v7_(boost::move(f.a7))
+ : fp_(boost::move(BOOST_THREAD_RV(f).fp))
+ , v0_(boost::move(BOOST_THREAD_RV(f).a0))
+ , v1_(boost::move(BOOST_THREAD_RV(f).a1))
+ , v2_(boost::move(BOOST_THREAD_RV(f).a2))
+ , v3_(boost::move(BOOST_THREAD_RV(f).a3))
+ , v4_(boost::move(BOOST_THREAD_RV(f).a4))
+ , v5_(boost::move(BOOST_THREAD_RV(f).a5))
+ , v6_(boost::move(BOOST_THREAD_RV(f).a6))
+ , v7_(boost::move(BOOST_THREAD_RV(f).a7))
{}
result_type operator()()
@@ -264,14 +264,14 @@
BOOST_SYMBOL_VISIBLE
async_func(BOOST_THREAD_RV_REF(async_func) f)
- : fp_(boost::move(f.fp))
- , v0_(boost::move(f.a0))
- , v1_(boost::move(f.a1))
- , v2_(boost::move(f.a2))
- , v3_(boost::move(f.a3))
- , v4_(boost::move(f.a4))
- , v5_(boost::move(f.a5))
- , v6_(boost::move(f.a6))
+ : fp_(boost::move(BOOST_THREAD_RV(f).fp))
+ , v0_(boost::move(BOOST_THREAD_RV(f).a0))
+ , v1_(boost::move(BOOST_THREAD_RV(f).a1))
+ , v2_(boost::move(BOOST_THREAD_RV(f).a2))
+ , v3_(boost::move(BOOST_THREAD_RV(f).a3))
+ , v4_(boost::move(BOOST_THREAD_RV(f).a4))
+ , v5_(boost::move(BOOST_THREAD_RV(f).a5))
+ , v6_(boost::move(BOOST_THREAD_RV(f).a6))
{}
result_type operator()()
@@ -321,13 +321,13 @@
BOOST_SYMBOL_VISIBLE
async_func(BOOST_THREAD_RV_REF(async_func) f)
- : fp_(boost::move(f.fp))
- , v0_(boost::move(f.a0))
- , v1_(boost::move(f.a1))
- , v2_(boost::move(f.a2))
- , v3_(boost::move(f.a3))
- , v4_(boost::move(f.a4))
- , v5_(boost::move(f.a5))
+ : fp_(boost::move(BOOST_THREAD_RV(f).fp))
+ , v0_(boost::move(BOOST_THREAD_RV(f).a0))
+ , v1_(boost::move(BOOST_THREAD_RV(f).a1))
+ , v2_(boost::move(BOOST_THREAD_RV(f).a2))
+ , v3_(boost::move(BOOST_THREAD_RV(f).a3))
+ , v4_(boost::move(BOOST_THREAD_RV(f).a4))
+ , v5_(boost::move(BOOST_THREAD_RV(f).a5))
{}
result_type operator()()
@@ -373,12 +373,12 @@
BOOST_SYMBOL_VISIBLE
async_func(BOOST_THREAD_RV_REF(async_func) f)
- : fp_(boost::move(f.fp))
- , v0_(boost::move(f.a0))
- , v1_(boost::move(f.a1))
- , v2_(boost::move(f.a2))
- , v3_(boost::move(f.a3))
- , v4_(boost::move(f.a4))
+ : fp_(boost::move(BOOST_THREAD_RV(f).fp))
+ , v0_(boost::move(BOOST_THREAD_RV(f).a0))
+ , v1_(boost::move(BOOST_THREAD_RV(f).a1))
+ , v2_(boost::move(BOOST_THREAD_RV(f).a2))
+ , v3_(boost::move(BOOST_THREAD_RV(f).a3))
+ , v4_(boost::move(BOOST_THREAD_RV(f).a4))
{}
result_type operator()()
@@ -420,11 +420,11 @@
BOOST_SYMBOL_VISIBLE
async_func(BOOST_THREAD_RV_REF(async_func) f)
- : fp_(boost::move(f.fp))
- , v0_(boost::move(f.a0))
- , v1_(boost::move(f.a1))
- , v2_(boost::move(f.a2))
- , v3_(boost::move(f.a3))
+ : fp_(boost::move(BOOST_THREAD_RV(f).fp))
+ , v0_(boost::move(BOOST_THREAD_RV(f).a0))
+ , v1_(boost::move(BOOST_THREAD_RV(f).a1))
+ , v2_(boost::move(BOOST_THREAD_RV(f).a2))
+ , v3_(boost::move(BOOST_THREAD_RV(f).a3))
{}
result_type operator()()
@@ -462,10 +462,10 @@
BOOST_SYMBOL_VISIBLE
async_func(BOOST_THREAD_RV_REF(async_func) f)
- : fp_(boost::move(f.fp))
- , v0_(boost::move(f.a0))
- , v1_(boost::move(f.a1))
- , v2_(boost::move(f.a2))
+ : fp_(boost::move(BOOST_THREAD_RV(f).fp))
+ , v0_(boost::move(BOOST_THREAD_RV(f).a0))
+ , v1_(boost::move(BOOST_THREAD_RV(f).a1))
+ , v2_(boost::move(BOOST_THREAD_RV(f).a2))
{}
result_type operator()()
@@ -499,9 +499,9 @@
BOOST_SYMBOL_VISIBLE
async_func(BOOST_THREAD_RV_REF(async_func) f)
- : fp_(boost::move(f.fp))
- , v0_(boost::move(f.a0))
- , v1_(boost::move(f.a1))
+ : fp_(boost::move(BOOST_THREAD_RV(f).fp))
+ , v0_(boost::move(BOOST_THREAD_RV(f).a0))
+ , v1_(boost::move(BOOST_THREAD_RV(f).a1))
{}
result_type operator()()
@@ -531,8 +531,8 @@
BOOST_SYMBOL_VISIBLE
async_func(BOOST_THREAD_RV_REF(async_func) f)
- : fp_(boost::move(f.fp))
- , v0_(boost::move(f.a0))
+ : fp_(boost::move(BOOST_THREAD_RV(f).fp))
+ , v0_(boost::move(BOOST_THREAD_RV(f).a0))
{}
result_type operator()()
@@ -556,7 +556,7 @@
BOOST_SYMBOL_VISIBLE
async_func(BOOST_THREAD_FWD_REF(async_func) f)
- : fp_(boost::move(f.fp_))
+ : fp_(boost::move(BOOST_THREAD_RV(f).fp_))
{}
result_type operator()()
{
Modified: trunk/boost/thread/externally_locked.hpp
==============================================================================
--- trunk/boost/thread/externally_locked.hpp Sat Oct 26 06:13:38 2013 (r86438)
+++ trunk/boost/thread/externally_locked.hpp 2013-10-26 06:19:38 EDT (Sat, 26 Oct 2013) (r86439)
@@ -97,7 +97,7 @@
/// move assignment
externally_locked& operator=(BOOST_THREAD_RV_REF(externally_locked) rhs) // BOOST_NOEXCEPT
{
- obj_=move(rhs.obj_);
+ obj_=move(BOOST_THREAD_RV(rhs).obj_);
mtx_=rhs.mtx_;
return *this;
}
Modified: trunk/boost/thread/scoped_thread.hpp
==============================================================================
--- trunk/boost/thread/scoped_thread.hpp Sat Oct 26 06:13:38 2013 (r86438)
+++ trunk/boost/thread/scoped_thread.hpp 2013-10-26 06:19:38 EDT (Sat, 26 Oct 2013) (r86439)
@@ -177,7 +177,7 @@
* Move constructor.
*/
scoped_thread(BOOST_RV_REF(scoped_thread) x) BOOST_NOEXCEPT :
- t_(boost::move(x.t_))
+ t_(boost::move(BOOST_THREAD_RV(x).t_))
{}
/**
@@ -197,7 +197,7 @@
*/
scoped_thread& operator=(BOOST_RV_REF(scoped_thread) x)
{
- t_ = boost::move(x.t_);
+ t_ = boost::move(BOOST_THREAD_RV(x).t_);
return *this;
}
Modified: trunk/boost/thread/synchronized_value.hpp
==============================================================================
--- trunk/boost/thread/synchronized_value.hpp Sat Oct 26 06:13:38 2013 (r86438)
+++ trunk/boost/thread/synchronized_value.hpp 2013-10-26 06:19:38 EDT (Sat, 26 Oct 2013) (r86439)
@@ -472,8 +472,8 @@
*/
synchronized_value(BOOST_THREAD_RV_REF(synchronized_value) other)
{
- strict_lock<mutex_type> lk(other.mtx_);
- value_= boost::move(other.value_);
+ strict_lock<mutex_type> lk(BOOST_THREAD_RV(other).mtx_);
+ value_= boost::move(BOOST_THREAD_RV(other).value_);
}
// mutation
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