Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ahem. You mean I need to actually compile with MC after moving files?
[simgrid.git] / src / kernel / context / Context.cpp
index 37ef379..145e1e1 100644 (file)
@@ -22,7 +22,15 @@ ContextFactoryInitializer factory_initializer = nullptr;
 
 ContextFactory::~ContextFactory() = default;
 
-thread_local Context* Context::current_ = nullptr;
+static thread_local Context* smx_current_context = nullptr;
+Context* Context::self()
+{
+  return smx_current_context;
+}
+void Context::set_current(Context* self)
+{
+  smx_current_context = self;
+}
 
 void Context::declare_context(std::size_t size)
 {