- for (int i = 0; i < cfg_host_count; i++) {
- auto hostname = std::string("lilibeth ") + std::to_string(i);
+
+ // get it once for all, to reduce the amount of simcalls during actor reboot
+ sg4::Mailbox* mailbox = sg4::Mailbox::by_name("mailbox");
+
+ sg4::Host* master_host = rootzone->create_host("lilibeth 0", 1e9); // Host where the master will stay
+ for (int i = 1; i < cfg_host_count; i++) {
+ auto hostname = "lilibeth " + std::to_string(i);