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
Simplify the Context::stop() and reduce duplication
[simgrid.git]
/
src
/
kernel
/
context
/
Context.cpp
diff --git
a/src/kernel/context/Context.cpp
b/src/kernel/context/Context.cpp
index
627eb36
..
40ded32
100644
(file)
--- a/
src/kernel/context/Context.cpp
+++ b/
src/kernel/context/Context.cpp
@@
-5,6
+5,7
@@
#include "mc/mc.h"
#include "mc/mc.h"
+#include "simgrid/Exception.hpp"
#include "simgrid/s4u/Host.hpp"
#include "src/kernel/activity/CommImpl.hpp"
#include "src/kernel/context/Context.hpp"
#include "simgrid/s4u/Host.hpp"
#include "src/kernel/activity/CommImpl.hpp"
#include "src/kernel/context/Context.hpp"
@@
-139,6
+140,7
@@
Context::~Context()
void Context::stop()
{
this->actor_->cleanup_from_self();
void Context::stop()
{
this->actor_->cleanup_from_self();
+ throw ForcefulKillException(); // clean RAII variables with the dedicated exception
}
void Context::set_wannadie(bool value)
}
void Context::set_wannadie(bool value)