A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
transparent cleanups around simcalls mechanism
[simgrid.git]
/
src
/
kernel
/
context
/
Context.cpp
diff --git
a/src/kernel/context/Context.cpp
b/src/kernel/context/Context.cpp
index
37ef379
..
886b201
100644
(file)
--- a/
src/kernel/context/Context.cpp
+++ b/
src/kernel/context/Context.cpp
@@
-22,7
+22,15
@@
ContextFactoryInitializer factory_initializer = nullptr;
ContextFactory::~ContextFactory() = default;
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)
{
void Context::declare_context(std::size_t size)
{
@@
-69,9
+77,3
@@
AttachContext::~AttachContext() = default;
} // namespace context
} // namespace kernel
} // namespace simgrid
} // namespace context
} // namespace kernel
} // namespace simgrid
-
-/** @brief Executes all the processes to run (in parallel if possible). */
-void SIMIX_context_runall()
-{
- simix_global->context_factory->run_all();
-}