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
Move ForcefulKillException to the root namespace, along with the other exceptions
[simgrid.git]
/
src
/
bindings
/
python
/
simgrid_python.cpp
diff --git
a/src/bindings/python/simgrid_python.cpp
b/src/bindings/python/simgrid_python.cpp
index f9074bf6f9ab05cca881533ff27146ef434e33a4..5a13a8aa02616918ca02517799eac4520d6d7b81 100644
(file)
--- a/
src/bindings/python/simgrid_python.cpp
+++ b/
src/bindings/python/simgrid_python.cpp
@@
-13,6
+13,7
@@
#include <pybind11/stl.h>
#include "src/kernel/context/Context.hpp"
#include <pybind11/stl.h>
#include "src/kernel/context/Context.hpp"
+#include <simgrid/Exception.hpp>
#include <simgrid/s4u/Actor.hpp>
#include <simgrid/s4u/Engine.hpp>
#include <simgrid/s4u/Host.hpp>
#include <simgrid/s4u/Actor.hpp>
#include <simgrid/s4u/Engine.hpp>
#include <simgrid/s4u/Host.hpp>
@@
-56,8
+57,7
@@
PYBIND11_MODULE(simgrid, m)
m.attr("simgrid_version") = simgrid_version;
// Internal exception used to kill actors and sweep the RAII chimney (free objects living on the stack)
m.attr("simgrid_version") = simgrid_version;
// Internal exception used to kill actors and sweep the RAII chimney (free objects living on the stack)
- py::object pyForcefulKillEx =
- py::register_exception<simgrid::kernel::context::ForcefulKillException>(m, "ActorKilled");
+ py::object pyForcefulKillEx = py::register_exception<simgrid::ForcefulKillException>(m, "ActorKilled");
/* this_actor namespace */
void (*sleep_for_fun)(double) = &simgrid::s4u::this_actor::sleep_for; // pick the right overload
/* this_actor namespace */
void (*sleep_for_fun)(double) = &simgrid::s4u::this_actor::sleep_for; // pick the right overload