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
further let the actor clean for itself
[simgrid.git]
/
src
/
kernel
/
context
/
ContextRaw.cpp
diff --git
a/src/kernel/context/ContextRaw.cpp
b/src/kernel/context/ContextRaw.cpp
index
5e178af
..
11a7888
100644
(file)
--- a/
src/kernel/context/ContextRaw.cpp
+++ b/
src/kernel/context/ContextRaw.cpp
@@
-188,18
+188,18
@@
namespace context {
// RawContextFactory
// RawContextFactory
-Context* RawContextFactory::create_context(std::function<void()>
code, smx_actor_t
actor)
+Context* RawContextFactory::create_context(std::function<void()>
&& code, actor::ActorImpl*
actor)
{
return this->new_context<RawContext>(std::move(code), actor, this);
}
// RawContext
{
return this->new_context<RawContext>(std::move(code), actor, this);
}
// RawContext
-RawContext::RawContext(std::function<void()>
code, smx_actor_t
actor, SwappedContextFactory* factory)
+RawContext::RawContext(std::function<void()>
&& code, actor::ActorImpl*
actor, SwappedContextFactory* factory)
: SwappedContext(std::move(code), actor, factory)
{
if (has_code()) {
: SwappedContext(std::move(code), actor, factory)
{
if (has_code()) {
- this->stack_top_ = raw_makecontext(get_stack(), smx_context_
usable_
stack_size, RawContext::wrapper, this);
+ this->stack_top_ = raw_makecontext(get_stack(), smx_context_stack_size, RawContext::wrapper, this);
} else {
if (MC_is_active())
MC_ignore_heap(&stack_top_, sizeof(stack_top_));
} else {
if (MC_is_active())
MC_ignore_heap(&stack_top_, sizeof(stack_top_));
@@
-237,4
+237,6
@@
ContextFactory* raw_factory()
XBT_VERB("Using raw contexts. Because the glibc is just not good enough for us.");
return new RawContextFactory();
}
XBT_VERB("Using raw contexts. Because the glibc is just not good enough for us.");
return new RawContextFactory();
}
-}}}
+} // namespace context
+} // namespace kernel
+} // namespace simgrid