]> AND Public Git Repository - simgrid.git/blobdiff - src/simix/smx_host.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
deprecate SIMIX_process_throw for ActorImpl::throw_exception
[simgrid.git] / src / simix / smx_host.cpp
index 779e2dcc6b9ad16162fa2f10fa70e92b8dfc6be2..745a67db7723e7ff58a7fe344d63bbb12327ff6d 100644 (file)
@@ -140,7 +140,7 @@ void SIMIX_execution_finish(smx_activity_t synchro)
 
       case SIMIX_TIMEOUT:
         XBT_DEBUG("SIMIX_execution_finished: execution timeouted");
-        SMX_EXCEPTION(simcall->issuer, timeout_error, 0, "Timeouted");
+        simcall->issuer->exception = std::make_exception_ptr(simgrid::TimeoutError(XBT_THROW_POINT, "Timeouted"));
         break;
 
       default: