X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6ee7e9c2e455536ab817ae0136acfbb53822eecd..7dfc27c1d33a1b795f053b51dbc21b459ec0cfda:/src/simix/smx_synchro.c diff --git a/src/simix/smx_synchro.c b/src/simix/smx_synchro.c index 3aef38486c..aed9f50d2f 100644 --- a/src/simix/smx_synchro.c +++ b/src/simix/smx_synchro.c @@ -89,7 +89,7 @@ static void SIMIX_synchro_finish(smx_action_t action) case SIMIX_SRC_TIMEOUT: TRY { - THROW0(timeout_error, 0, "Synchro's wait timeout"); + THROWF(timeout_error, 0, "Synchro's wait timeout"); } CATCH(req->issuer->running_ctx->exception) { req->issuer->doexception = 1; } @@ -97,7 +97,7 @@ static void SIMIX_synchro_finish(smx_action_t action) case SIMIX_FAILED: TRY { - THROW0(host_error, 0, "Host failed"); + THROWF(host_error, 0, "Host failed"); } CATCH(req->issuer->running_ctx->exception) { req->issuer->doexception = 1; } @@ -350,7 +350,7 @@ void SIMIX_cond_destroy(smx_cond_t cond) XBT_DEBUG("Destroy condition %p", cond); if (cond != NULL) { - xbt_assert0(xbt_swag_size(cond->sleeping) == 0, + xbt_assert(xbt_swag_size(cond->sleeping) == 0, "Cannot destroy conditional since someone is still using it"); xbt_swag_free(cond->sleeping); @@ -376,7 +376,7 @@ void SIMIX_sem_destroy(smx_sem_t sem) { XBT_DEBUG("Destroy semaphore %p", sem); if (sem != NULL) { - xbt_assert0(xbt_swag_size(sem->sleeping) == 0, + xbt_assert(xbt_swag_size(sem->sleeping) == 0, "Cannot destroy semaphore since someone is still using it"); xbt_swag_free(sem->sleeping); xbt_free(sem);