X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4e7df12e1e81b2ff9212175628873d6d880b6630..a52f8cfbfad83e2fee158fb72cfdd45e15eb4f79:/src/simix/smx_private.hpp diff --git a/src/simix/smx_private.hpp b/src/simix/smx_private.hpp index 18b0131af8..54fdcac886 100644 --- a/src/simix/smx_private.hpp +++ b/src/simix/smx_private.hpp @@ -1,4 +1,4 @@ -/* 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. */ @@ -30,11 +30,13 @@ public: */ void empty_trash(); void run_all_actors(); + void wake_all_waiting_actors(); + void display_all_actor_status(); smx_context_factory_t context_factory = nullptr; - std::vector actors_to_run; - std::vector actors_that_ran; - std::map process_list; + std::vector actors_to_run; + std::vector actors_that_ran; + std::map process_list; boost::intrusive::list, &kernel::actor::ActorImpl::smx_destroy_list_hook>> @@ -48,23 +50,17 @@ public: * That way, the MCer would not need to have the list of actors on its side. * These info could be published by the MCed to the MCer in a way inspired of vd.so */ - xbt_dynar_t actors_vector = xbt_dynar_new(sizeof(smx_actor_t), nullptr); - xbt_dynar_t dead_actors_vector = xbt_dynar_new(sizeof(smx_actor_t), nullptr); + xbt_dynar_t actors_vector = xbt_dynar_new(sizeof(kernel::actor::ActorImpl*), nullptr); + xbt_dynar_t dead_actors_vector = xbt_dynar_new(sizeof(kernel::actor::ActorImpl*), nullptr); #endif - smx_actor_t maestro_process = nullptr; - - // Maps function names to actor code: - std::unordered_map registered_functions; - - // This might be used when no corresponding function name is registered: - simgrid::simix::ActorCodeFactory default_function; + kernel::actor::ActorImpl* maestro_ = nullptr; std::mutex mutex; - std::vector> tasks; - std::vector> tasksTemp; + std::vector> tasks; + std::vector> tasksTemp; - std::vector daemons; + std::vector daemons; }; } }