Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : break forgotten in switch
[simgrid.git] / src / simix / smx_synchro.c
index 8ea578f..f5ccd07 100644 (file)
@@ -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;