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
context: rewrite some comments, and useless cosmetics
[simgrid.git]
/
src
/
kernel
/
context
/
ContextBoost.cpp
diff --git
a/src/kernel/context/ContextBoost.cpp
b/src/kernel/context/ContextBoost.cpp
index
b2e2331
..
b3d609b
100644
(file)
--- a/
src/kernel/context/ContextBoost.cpp
+++ b/
src/kernel/context/ContextBoost.cpp
@@
-21,13
+21,13
@@
BoostContextFactory::BoostContextFactory()
{
BoostContext::set_maestro(nullptr);
if (parallel_)
-
ParallelBoost
Context::initialize();
+
Swapped
Context::initialize();
}
BoostContextFactory::~BoostContextFactory()
{
if (parallel_)
-
ParallelBoost
Context::finalize();
+
Swapped
Context::finalize();
}
smx_context_t BoostContextFactory::create_context(std::function<void()> code, void_pfn_smxprocess_t cleanup_func,
@@
-169,8
+169,8
@@
void ParallelBoostContext::resume()
{
worker_id_ = threads_working_.fetch_add(1, std::memory_order_relaxed);
-
ParallelBoostContext* worker_context = static_cast<ParallelBoost
Context*>(self());
- workers_context_[worker_id_]
= worker_context;
+
SwappedContext* worker_context = static_cast<Swapped
Context*>(self());
+ workers_context_[worker_id_] = worker_context;
Context::set_current(this);
worker_context->swap_into(this);