actor_test.cpp 837 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // Copyright (c) 2019-2021 Ivan Baidakou (basiliscos) (the dot dmol at gmail dot com)
  3. //
  4. // Distributed under the MIT Software License
  5. //
  6. #include "actor_test.h"
  7. #include "access.h"
  8. using namespace rotor::test;
  9. using namespace rotor;
  10. actor_test_t::~actor_test_t() { printf("~actor_test_t, %p(%p)\n", (void *)this, (void *)address.get()); }
  11. void actor_test_t::configure(plugin::plugin_base_t &plugin) noexcept {
  12. actor_base_t::configure(plugin);
  13. if (configurer)
  14. configurer(*this, plugin);
  15. }
  16. void actor_test_t::force_cleanup() noexcept {
  17. for (auto plugin : plugins) {
  18. plugin->access<to::own_subscriptions>().clear();
  19. }
  20. lifetime->access<to::points>().clear();
  21. }
  22. void actor_test_t::shutdown_finish() noexcept {
  23. actor_base_t::shutdown_finish();
  24. if (shutdowner)
  25. shutdowner(*this);
  26. }