From: Arnaud Giersch Date: Mon, 18 Mar 2019 12:57:23 +0000 (+0100) Subject: Avoid deprecated type alias. X-Git-Tag: v3_22~66 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3ae6123aa28d3dd81f94623705f692d0cde6de57?ds=sidebyside Avoid deprecated type alias. --- diff --git a/src/include/xbt/parmap.hpp b/src/include/xbt/parmap.hpp index 839d029d37..ec4fdc81ac 100644 --- a/src/include/xbt/parmap.hpp +++ b/src/include/xbt/parmap.hpp @@ -294,7 +294,7 @@ template void Parmap::worker_main(ThreadData* data) { Parmap& parmap = data->parmap; unsigned round = 0; - smx_context_t context = simix_global->context_factory->create_context(std::function(), nullptr); + kernel::context::Context* context = simix_global->context_factory->create_context(std::function(), nullptr); kernel::context::Context::set_current(context); XBT_CDEBUG(xbt_parmap, "New worker thread created"); diff --git a/src/kernel/actor/ActorImpl.cpp b/src/kernel/actor/ActorImpl.cpp index 8371aaeae5..3aab7633b3 100644 --- a/src/kernel/actor/ActorImpl.cpp +++ b/src/kernel/actor/ActorImpl.cpp @@ -33,7 +33,7 @@ static unsigned long simix_process_maxpid = 0; */ smx_actor_t SIMIX_process_self() { - smx_context_t self_context = simgrid::kernel::context::Context::self(); + simgrid::kernel::context::Context* self_context = simgrid::kernel::context::Context::self(); return (self_context != nullptr) ? self_context->get_actor() : nullptr; } diff --git a/src/kernel/context/Context.cpp b/src/kernel/context/Context.cpp index ba398a1cf0..145e1e1cfe 100644 --- a/src/kernel/context/Context.cpp +++ b/src/kernel/context/Context.cpp @@ -22,7 +22,7 @@ ContextFactoryInitializer factory_initializer = nullptr; ContextFactory::~ContextFactory() = default; -static thread_local smx_context_t smx_current_context = nullptr; +static thread_local Context* smx_current_context = nullptr; Context* Context::self() { return smx_current_context; diff --git a/src/s4u/s4u_Actor.cpp b/src/s4u/s4u_Actor.cpp index 836de05be3..b44df1471f 100644 --- a/src/s4u/s4u_Actor.cpp +++ b/src/s4u/s4u_Actor.cpp @@ -33,7 +33,7 @@ xbt::signal s4u::Actor::on_destruction; // ***** Actor creation ***** ActorPtr Actor::self() { - smx_context_t self_context = kernel::context::Context::self(); + kernel::context::Context* self_context = kernel::context::Context::self(); if (self_context == nullptr) return ActorPtr();