null_strand.hpp 557 B

12345678910111213141516171819202122232425
  1. // Copyright Takatoshi Kondo 2016
  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_NULL_STRAND_HPP)
  7. #define MQTT_NULL_STRAND_HPP
  8. #include <utility>
  9. #include <boost/asio.hpp>
  10. #include <mqtt/namespace.hpp>
  11. namespace MQTT_NS {
  12. namespace as = boost::asio;
  13. // Using standard executor style null_strand / simple executor
  14. using null_strand = as::io_context::executor_type;
  15. } // namespace MQTT_NS
  16. #endif // MQTT_NULL_STRAND_HPP