diff options
Diffstat (limited to '3rdParty/Boost/src/boost/asio/detail/reactive_serial_port_service.hpp')
-rw-r--r-- | 3rdParty/Boost/src/boost/asio/detail/reactive_serial_port_service.hpp | 27 |
1 files changed, 22 insertions, 5 deletions
diff --git a/3rdParty/Boost/src/boost/asio/detail/reactive_serial_port_service.hpp b/3rdParty/Boost/src/boost/asio/detail/reactive_serial_port_service.hpp index 303c1f0..9d75062 100644 --- a/3rdParty/Boost/src/boost/asio/detail/reactive_serial_port_service.hpp +++ b/3rdParty/Boost/src/boost/asio/detail/reactive_serial_port_service.hpp @@ -39,7 +39,7 @@ class reactive_serial_port_service { public: // The native type of a serial port. - typedef reactive_descriptor_service::native_type native_type; + typedef reactive_descriptor_service::native_handle_type native_handle_type; // The implementation type of the serial port. typedef reactive_descriptor_service::implementation_type implementation_type; @@ -56,6 +56,22 @@ public: descriptor_service_.construct(impl); } + // Move-construct a new serial port implementation. + void move_construct(implementation_type& impl, + implementation_type& other_impl) + { + descriptor_service_.move_construct(impl, other_impl); + } + + // Move-assign from another serial port implementation. + void move_assign(implementation_type& impl, + reactive_serial_port_service& other_service, + implementation_type& other_impl) + { + descriptor_service_.move_assign(impl, + other_service.descriptor_service_, other_impl); + } + // Destroy a serial port implementation. void destroy(implementation_type& impl) { @@ -68,7 +84,8 @@ public: // Assign a native descriptor to a serial port implementation. boost::system::error_code assign(implementation_type& impl, - const native_type& native_descriptor, boost::system::error_code& ec) + const native_handle_type& native_descriptor, + boost::system::error_code& ec) { return descriptor_service_.assign(impl, native_descriptor, ec); } @@ -87,9 +104,9 @@ public: } // Get the native serial port representation. - native_type native(implementation_type& impl) + native_handle_type native_handle(implementation_type& impl) { - return descriptor_service_.native(impl); + return descriptor_service_.native_handle(impl); } // Cancel all operations associated with the serial port. @@ -125,7 +142,7 @@ public: { errno = 0; descriptor_ops::error_wrapper(::tcsendbreak( - descriptor_service_.native(impl), 0), ec); + descriptor_service_.native_handle(impl), 0), ec); return ec; } |