mutex.hpp 445 B

1234567891011121314151617181920
  1. // Copyright Takatoshi Kondo 2021
  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_BROKER_MUTEX_HPP)
  7. #define MQTT_BROKER_MUTEX_HPP
  8. #include <shared_mutex>
  9. #include <mqtt/broker/broker_namespace.hpp>
  10. MQTT_BROKER_NS_BEGIN
  11. using mutex = std::shared_timed_mutex;
  12. MQTT_BROKER_NS_END
  13. #endif // MQTT_BROKER_MUTEX_HPP