X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fboost%2Fboost%2Fasio%2Fimpl%2Fwrite.hpp;h=b160d4d976f4c4388071eb72bf8805844f800225;hb=20effc670b57271cb089376d6d0800990e5218d5;hp=cb35613def78781f513586627bc6acd9a0fec191;hpb=a71831dadd1e1f3e0fa70405511f65cc33db0498;p=ceph.git diff --git a/ceph/src/boost/boost/asio/impl/write.hpp b/ceph/src/boost/boost/asio/impl/write.hpp index cb35613de..b160d4d97 100644 --- a/ceph/src/boost/boost/asio/impl/write.hpp +++ b/ceph/src/boost/boost/asio/impl/write.hpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include #include @@ -55,7 +56,7 @@ namespace detail else break; } - return tmp.total_consumed();; + return tmp.total_consumed(); } } // namespace detail @@ -326,8 +327,11 @@ namespace detail max_size = this->check_for_completion(ec, buffers_.total_consumed()); do { - stream_.async_write_some(buffers_.prepare(max_size), - BOOST_ASIO_MOVE_CAST(write_op)(*this)); + { + BOOST_ASIO_HANDLER_LOCATION((__FILE__, __LINE__, "async_write")); + stream_.async_write_some(buffers_.prepare(max_size), + BOOST_ASIO_MOVE_CAST(write_op)(*this)); + } return; default: buffers_.consume(bytes_transferred); if ((!ec && bytes_transferred == 0) || buffers_.empty()) @@ -352,23 +356,33 @@ namespace detail template - inline void* asio_handler_allocate(std::size_t size, + inline asio_handler_allocate_is_deprecated + asio_handler_allocate(std::size_t size, write_op* this_handler) { +#if defined(BOOST_ASIO_NO_DEPRECATED) + boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_); + return asio_handler_allocate_is_no_longer_used(); +#else // defined(BOOST_ASIO_NO_DEPRECATED) return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template - inline void asio_handler_deallocate(void* pointer, std::size_t size, + inline asio_handler_deallocate_is_deprecated + asio_handler_deallocate(void* pointer, std::size_t size, write_op* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_deallocate_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template - inline void asio_handler_invoke(Function& function, + inline asio_handler_invoke_is_deprecated + asio_handler_invoke(Function& function, write_op* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template - inline void asio_handler_invoke(const Function& function, + inline asio_handler_invoke_is_deprecated + asio_handler_invoke(const Function& function, write_op* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template , Executor> + : detail::associated_executor_forwarding_base { typedef typename associated_executor::type type; @@ -600,22 +623,32 @@ namespace detail template - inline void* asio_handler_allocate(std::size_t size, + inline asio_handler_allocate_is_deprecated + asio_handler_allocate(std::size_t size, write_dynbuf_v1_op* this_handler) { +#if defined(BOOST_ASIO_NO_DEPRECATED) + boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_); + return asio_handler_allocate_is_no_longer_used(); +#else // defined(BOOST_ASIO_NO_DEPRECATED) return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template - inline void asio_handler_deallocate(void* pointer, std::size_t size, + inline asio_handler_deallocate_is_deprecated + asio_handler_deallocate(void* pointer, std::size_t size, write_dynbuf_v1_op* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_deallocate_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template - inline void asio_handler_invoke(Function& function, + inline asio_handler_invoke_is_deprecated + asio_handler_invoke(Function& function, write_dynbuf_v1_op* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template - inline void asio_handler_invoke(const Function& function, + inline asio_handler_invoke_is_deprecated + asio_handler_invoke(const Function& function, write_dynbuf_v1_op* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template @@ -717,6 +758,7 @@ struct associated_executor< detail::write_dynbuf_v1_op, Executor> + : detail::associated_executor_forwarding_base { typedef typename associated_executor::type type; @@ -870,22 +912,32 @@ namespace detail template - inline void* asio_handler_allocate(std::size_t size, + inline asio_handler_allocate_is_deprecated + asio_handler_allocate(std::size_t size, write_dynbuf_v2_op* this_handler) { +#if defined(BOOST_ASIO_NO_DEPRECATED) + boost_asio_handler_alloc_helpers::allocate(size, this_handler->handler_); + return asio_handler_allocate_is_no_longer_used(); +#else // defined(BOOST_ASIO_NO_DEPRECATED) return boost_asio_handler_alloc_helpers::allocate( size, this_handler->handler_); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template - inline void asio_handler_deallocate(void* pointer, std::size_t size, + inline asio_handler_deallocate_is_deprecated + asio_handler_deallocate(void* pointer, std::size_t size, write_dynbuf_v2_op* this_handler) { boost_asio_handler_alloc_helpers::deallocate( pointer, size, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_deallocate_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template - inline void asio_handler_invoke(Function& function, + inline asio_handler_invoke_is_deprecated + asio_handler_invoke(Function& function, write_dynbuf_v2_op* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template - inline void asio_handler_invoke(const Function& function, + inline asio_handler_invoke_is_deprecated + asio_handler_invoke(const Function& function, write_dynbuf_v2_op* this_handler) { boost_asio_handler_invoke_helpers::invoke( function, this_handler->handler_); +#if defined(BOOST_ASIO_NO_DEPRECATED) + return asio_handler_invoke_is_no_longer_used(); +#endif // defined(BOOST_ASIO_NO_DEPRECATED) } template @@ -987,6 +1047,7 @@ struct associated_executor< detail::write_dynbuf_v2_op, Executor> + : detail::associated_executor_forwarding_base { typedef typename associated_executor::type type;