-/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
void Global::display_all_actor_status()
{
- XBT_INFO("%lu actors are still running, waiting for something.", process_list.size());
+ XBT_INFO("%zu actors are still running, waiting for something.", process_list.size());
/* List the actors and their state */
XBT_INFO("Legend of the following listing: \"Actor <pid> (<name>@<host>): <status>\"");
for (auto const& kv : process_list) {
} // namespace simix
} // namespace simgrid
-static simgrid::simix::ActorCode maestro_code;
+static simgrid::kernel::actor::ActorCode maestro_code;
void SIMIX_set_maestro(void (*code)(void*), void* data)
{
#ifdef _WIN32
/* register a function to be called by SURF after the environment creation */
sg_platf_init();
simgrid::s4u::Engine::on_platform_created.connect(surf_presolve);
-
- simgrid::s4u::Storage::on_creation.connect([](simgrid::s4u::Storage const& storage) {
- sg_storage_t s = simgrid::s4u::Storage::by_name(storage.get_name());
- xbt_assert(s != nullptr, "Storage not found for name %s", storage.get_cname());
- });
}
if (simgrid::config::get_value<bool>("debug/clean-atexit"))
{
if (simix_global == nullptr) // SimDag
return true;
- simgrid::kernel::actor::ActorImpl* self = SIMIX_process_self();
+ const simgrid::kernel::actor::ActorImpl* self = SIMIX_process_self();
return self == nullptr || self == simix_global->maestro_;
}