X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/46c7981905414e7342d681be4f10709f8ef4009e..6b188a3ca7fe91cf125a08229fb4fe51eee26e6d:/src/simix/smx_synchro.c diff --git a/src/simix/smx_synchro.c b/src/simix/smx_synchro.c index 8ea578fd8a..f5ccd07033 100644 --- a/src/simix/smx_synchro.c +++ b/src/simix/smx_synchro.c @@ -17,7 +17,6 @@ static void _SIMIX_cond_wait(smx_cond_t cond, smx_mutex_t mutex, double timeout, smx_process_t issuer, smx_req_t req); static void _SIMIX_sem_wait(smx_sem_t sem, double timeout, smx_process_t issuer, smx_req_t req); -static void SIMIX_sem_block_onto(smx_sem_t sem); /***************************** Synchro action *********************************/ @@ -99,7 +98,8 @@ static void SIMIX_synchro_finish(smx_action_t action) case SIMIX_SRC_TIMEOUT: TRY { THROWF(timeout_error, 0, "Synchro's wait timeout"); - } CATCH(req->issuer->running_ctx->exception) { + } + CATCH(req->issuer->running_ctx->exception) { req->issuer->doexception = 1; } break; @@ -107,7 +107,8 @@ static void SIMIX_synchro_finish(smx_action_t action) case SIMIX_FAILED: TRY { THROWF(host_error, 0, "Host failed"); - } CATCH(req->issuer->running_ctx->exception) { + } + CATCH(req->issuer->running_ctx->exception) { req->issuer->doexception = 1; } break;