Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Avoid deprecated type alias.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 18 Mar 2019 12:57:23 +0000 (13:57 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 18 Mar 2019 12:57:23 +0000 (13:57 +0100)
src/include/xbt/parmap.hpp
src/kernel/actor/ActorImpl.cpp
src/kernel/context/Context.cpp
src/s4u/s4u_Actor.cpp

index 839d029..ec4fdc8 100644 (file)
@@ -294,7 +294,7 @@ template <typename T> void Parmap<T>::worker_main(ThreadData* data)
 {
   Parmap<T>& parmap     = data->parmap;
   unsigned round        = 0;
 {
   Parmap<T>& parmap     = data->parmap;
   unsigned round        = 0;
-  smx_context_t context = simix_global->context_factory->create_context(std::function<void()>(), nullptr);
+  kernel::context::Context* context = simix_global->context_factory->create_context(std::function<void()>(), nullptr);
   kernel::context::Context::set_current(context);
 
   XBT_CDEBUG(xbt_parmap, "New worker thread created");
   kernel::context::Context::set_current(context);
 
   XBT_CDEBUG(xbt_parmap, "New worker thread created");
index 8371aae..3aab763 100644 (file)
@@ -33,7 +33,7 @@ static unsigned long simix_process_maxpid = 0;
  */
 smx_actor_t SIMIX_process_self()
 {
  */
 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;
 }
 
   return (self_context != nullptr) ? self_context->get_actor() : nullptr;
 }
index ba398a1..145e1e1 100644 (file)
@@ -22,7 +22,7 @@ ContextFactoryInitializer factory_initializer = nullptr;
 
 ContextFactory::~ContextFactory() = default;
 
 
 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;
 Context* Context::self()
 {
   return smx_current_context;
index 836de05..b44df14 100644 (file)
@@ -33,7 +33,7 @@ xbt::signal<void(ActorPtr)> s4u::Actor::on_destruction;
 // ***** Actor creation *****
 ActorPtr Actor::self()
 {
 // ***** 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();
 
   if (self_context == nullptr)
     return ActorPtr();