X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7444a715278a4bad33c0200162286c50f03bcaef..17496ac16483b8d60b8c375ac109d4c19639297b:/src/simix/smx_private.hpp diff --git a/src/simix/smx_private.hpp b/src/simix/smx_private.hpp index e6cc998a0e..830a2f819d 100644 --- a/src/simix/smx_private.hpp +++ b/src/simix/smx_private.hpp @@ -8,10 +8,12 @@ #include "simgrid/s4u/Actor.hpp" #include "src/kernel/context/Context.hpp" -#include +#include "src/simix/ActorImpl.hpp" +#include #include -#include +#include +#include #include /********************************** Simix Global ******************************/ @@ -20,7 +22,7 @@ namespace simgrid { namespace simix { class Global { - friend XBT_PUBLIC bool simgrid::s4u::this_actor::isMaestro(); + friend XBT_PUBLIC bool simgrid::s4u::this_actor::is_maestro(); public: smx_context_factory_t context_factory = nullptr; @@ -51,11 +53,7 @@ public: // This might be used when no corresponding function name is registered: simgrid::simix::ActorCodeFactory default_function; - smx_creation_func_t create_process_function = nullptr; - void_pfn_smxprocess_t kill_process_function = nullptr; - /** Callback used when killing a SMX_process */ - void_pfn_smxprocess_t cleanup_process_function = nullptr; - xbt_os_mutex_t mutex = nullptr; + std::mutex mutex; std::vector> tasks; std::vector> tasksTemp; @@ -65,8 +63,6 @@ public: } } -extern "C" { - XBT_PUBLIC_DATA std::unique_ptr simix_global; XBT_PUBLIC void SIMIX_clean(); @@ -82,6 +78,5 @@ XBT_PUBLIC void SIMIX_clean(); _smx_throw_issuer->exception = std::make_exception_ptr(e); \ } else \ ((void)0) -} #endif