Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/thread/externally_locked.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
16 #include <boost/thread/strict_lock.hpp> | 16 #include <boost/thread/strict_lock.hpp> |
17 | 17 |
18 #include <boost/static_assert.hpp> | 18 #include <boost/static_assert.hpp> |
19 #include <boost/type_traits/is_same.hpp> | 19 #include <boost/type_traits/is_same.hpp> |
20 #include <boost/throw_exception.hpp> | 20 #include <boost/throw_exception.hpp> |
21 #include <boost/utility/swap.hpp> | 21 #include <boost/core/swap.hpp> |
22 | 22 |
23 #include <boost/config/abi_prefix.hpp> | 23 #include <boost/config/abi_prefix.hpp> |
24 | 24 |
25 namespace boost | 25 namespace boost |
26 { | 26 { |
95 } | 95 } |
96 | 96 |
97 /// move assignment | 97 /// move assignment |
98 externally_locked& operator=(BOOST_THREAD_RV_REF(externally_locked) rhs) // BOOST_NOEXCEPT | 98 externally_locked& operator=(BOOST_THREAD_RV_REF(externally_locked) rhs) // BOOST_NOEXCEPT |
99 { | 99 { |
100 obj_=move(rhs.obj_); | 100 obj_=move(BOOST_THREAD_RV(rhs).obj_); |
101 mtx_=rhs.mtx_; | 101 mtx_=rhs.mtx_; |
102 return *this; | 102 return *this; |
103 } | 103 } |
104 | 104 |
105 void swap(externally_locked& rhs) //BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT_EXPR) | 105 void swap(externally_locked& rhs) //BOOST_NOEXCEPT_IF(BOOST_NOEXCEPT_EXPR) |