X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e0a281ae9bf022db9aaf5576ae34577bad91c946..4e46fb705a7ae3d90e14ea3b9a0cc9b4e9007f99:/src/kernel/context/ContextThread.cpp diff --git a/src/kernel/context/ContextThread.cpp b/src/kernel/context/ContextThread.cpp index a164339ef0..f03413bb1a 100644 --- a/src/kernel/context/ContextThread.cpp +++ b/src/kernel/context/ContextThread.cpp @@ -103,9 +103,9 @@ void *ThreadContext::wrapper(void *param) context->Context::stop(); context->stop_hook(); } - } catch (StopRequest const&) { - XBT_DEBUG("Caught a StopRequest in Thread::wrapper"); - xbt_assert(not context->is_maestro(), "Maestro shall not receive StopRequests, even when detached."); + } catch (ForcefulKillException const&) { + XBT_DEBUG("Caught a ForcefulKillException in Thread::wrapper"); + xbt_assert(not context->is_maestro(), "Maestro shall not receive ForcefulKillExceptions, even when detached."); } catch (simgrid::Exception const& e) { XBT_INFO("Actor killed by an uncatched exception %s", simgrid::xbt::demangle(typeid(e).name()).get()); throw; @@ -148,7 +148,7 @@ void ThreadContext::stop() { Context::stop(); stop_hook(); - throw StopRequest(); + throw ForcefulKillException(); } void ThreadContext::suspend()