Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Bugfix: manually increase the time when running the model-checkers on sleep calls.
[simgrid.git] / src / simix / smx_process.c
index 31843be..e182d8d 100644 (file)
@@ -15,6 +15,8 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_process, simix,
                                 "Logging specific to SIMIX (process)");
 
 unsigned long simix_process_maxpid = 0;
+/* FIXME: Ugly hack!*/
+extern double NOW;
 
 /**
  * \brief Returns the current agent.
@@ -419,6 +421,7 @@ xbt_dict_t SIMIX_process_get_properties(smx_process_t process)
 void SIMIX_pre_process_sleep(smx_req_t req)
 {
   if (MC_IS_ENABLED) {
+    NOW += req->process_sleep.duration;
     req->process_sleep.result = SIMIX_DONE;
     SIMIX_request_answer(req);
   }