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
A blocking simcall does not make sense in kernel mode.
[simgrid.git]
/
include
/
simgrid
/
simix
/
blocking_simcall.hpp
diff --git
a/include/simgrid/simix/blocking_simcall.hpp
b/include/simgrid/simix/blocking_simcall.hpp
index
110a27d
..
7a80fe5
100644
(file)
--- a/
include/simgrid/simix/blocking_simcall.hpp
+++ b/
include/simgrid/simix/blocking_simcall.hpp
@@
-46,12
+46,10
@@
XBT_PUBLIC void unblock(smx_actor_t process);
template <class F> auto kernel_sync(F code) -> decltype(code().get())
{
using T = decltype(code().get());
template <class F> auto kernel_sync(F code) -> decltype(code().get())
{
using T = decltype(code().get());
- if (SIMIX_is_maestro())
- xbt_die("Can't execute blocking call in kernel mode");
+ xbt_assert(not SIMIX_is_maestro(), "Cannot execute blocking call in kernel mode");
smx_actor_t self = SIMIX_process_self();
simgrid::xbt::Result<T> result;
smx_actor_t self = SIMIX_process_self();
simgrid::xbt::Result<T> result;
-
simcall_run_blocking(
[&result, self, &code] {
try {
simcall_run_blocking(
[&result, self, &code] {
try {