Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Inline Context::self().
[simgrid.git] / src / kernel / context / Context.cpp
index 145e1e1..37ef379 100644 (file)
@@ -22,15 +22,7 @@ ContextFactoryInitializer factory_initializer = nullptr;
 
 ContextFactory::~ContextFactory() = default;
 
-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;
-}
+thread_local Context* Context::current_ = nullptr;
 
 void Context::declare_context(std::size_t size)
 {