Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix a bug in a deprecated function
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 27 Aug 2019 07:21:22 +0000 (09:21 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sun, 1 Sep 2019 00:35:14 +0000 (02:35 +0200)
Found by a static analyzer because the function parameter was unused

src/simix/libsmx.cpp

index 5c2f919..c25eee7 100644 (file)
@@ -51,7 +51,7 @@ void simcall_process_join(smx_actor_t process, double timeout)
 
 void simcall_process_suspend(smx_actor_t process)
 {
-  SIMIX_process_self()->iface()->suspend();
+  process->iface()->suspend();
 }
 
 e_smx_state_t simcall_process_sleep(double duration)