policy.h 548 B

1234567891011121314151617181920212223
  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. namespace rotor {
  8. /** \brief how to behave on child actor initialization failures */
  9. enum class supervisor_policy_t {
  10. /** \brief shutdown supervisor (and all its actors) if a child-actor
  11. * fails during supervisor initialization phase
  12. */
  13. shutdown_self = 1,
  14. /** \brief shutdown a failed child and continue initialization */
  15. shutdown_failed,
  16. };
  17. } // namespace rotor