X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/88fad0aaff9eb463f048bfdfe4ad6218aba44ddb..9fd6cbc6c3b06f4b09e3c3339ffb3cc8a68f9bfa:/src/simix/smx_private.hpp diff --git a/src/simix/smx_private.hpp b/src/simix/smx_private.hpp index e6cc998a0e..ea586f129a 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; @@ -55,7 +57,7 @@ public: 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 +67,6 @@ public: } } -extern "C" { - XBT_PUBLIC_DATA std::unique_ptr simix_global; XBT_PUBLIC void SIMIX_clean(); @@ -82,6 +82,5 @@ XBT_PUBLIC void SIMIX_clean(); _smx_throw_issuer->exception = std::make_exception_ptr(e); \ } else \ ((void)0) -} #endif