Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
if deadlock, close trace file so it may help to find the problem
[simgrid.git] / src / simix / smx_synchro.c
index 3aef384..aed9f50 100644 (file)
@@ -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);