X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Flog%2Fsources%2Fchannel_feature.hpp;h=894c2697a5eb7193e7531600f6a0a691374198c5;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=d7e88c4aad15da9da9a6e98e00076195398d1a0e;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/boost/boost/log/sources/channel_feature.hpp b/ceph/src/boost/boost/log/sources/channel_feature.hpp index d7e88c4aa..894c2697a 100644 --- a/ceph/src/boost/boost/log/sources/channel_feature.hpp +++ b/ceph/src/boost/boost/log/sources/channel_feature.hpp @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -76,7 +77,7 @@ public: typedef typename strictest_lock< typename base_type::swap_lock, #ifndef BOOST_LOG_NO_THREADS - boost::log::aux::exclusive_lock_guard< threading_model > + boost::log::aux::multiple_unique_lock2< threading_model, threading_model > #else no_lock< threading_model > #endif // !defined(BOOST_LOG_NO_THREADS) @@ -109,16 +110,16 @@ public: base_type(static_cast< base_type const& >(that)), m_ChannelAttr(that.m_ChannelAttr) { + // Our attributes must refer to our channel attribute base_type::attributes()[boost::log::aux::default_attribute_names::channel()] = m_ChannelAttr; } /*! * Move constructor */ - basic_channel_logger(BOOST_RV_REF(basic_channel_logger) that) : + basic_channel_logger(BOOST_RV_REF(basic_channel_logger) that) BOOST_NOEXCEPT_IF(boost::is_nothrow_move_constructible< base_type >::value && boost::is_nothrow_move_constructible< channel_attribute >::value) : base_type(boost::move(static_cast< base_type& >(that))), m_ChannelAttr(boost::move(that.m_ChannelAttr)) { - base_type::attributes()[boost::log::aux::default_attribute_names::channel()] = m_ChannelAttr; } /*! * Constructor with arguments. Allows to register a channel name attribute on construction.