strand.hpp 489 B

1234567891011121314151617181920212223
  1. // Copyright Takatoshi Kondo 2020
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. // (See accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. #if !defined(MQTT_STRAND_HPP)
  7. #define MQTT_STRAND_HPP
  8. #include <boost/asio/io_context.hpp>
  9. #include <boost/asio/strand.hpp>
  10. #include <mqtt/namespace.hpp>
  11. namespace MQTT_NS {
  12. namespace as = boost::asio;
  13. using strand = as::strand<as::io_context::executor_type>;
  14. }
  15. #endif // MQTT_STRAND_HPP