system_context_ev.h 731 B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. //
  3. // Copyright (c) 2019-2020 Ivan Baidakou (basiliscos) (the dot dmol at gmail dot com)
  4. //
  5. // Distributed under the MIT Software License
  6. //
  7. #include "rotor/arc.hpp"
  8. #include "rotor/ev/supervisor_config_ev.h"
  9. #include "rotor/system_context.h"
  10. #include <ev.h>
  11. namespace rotor {
  12. namespace ev {
  13. struct supervisor_ev_t;
  14. /** \brief intrusive pointer for ev supervisor */
  15. using supervisor_ptr_t = intrusive_ptr_t<supervisor_ev_t>;
  16. /** \brief alias for system main system context */
  17. using system_context_ev_t = rotor::system_context_t;
  18. /** \brief intrusive pointer type for ev system context */
  19. using system_context_ptr_t = typename rotor::intrusive_ptr_t<system_context_ev_t>;
  20. } // namespace ev
  21. } // namespace rotor