Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
deprecate simcall_process_sleep and add some reminders in libsimix.cpp
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 4 Nov 2019 10:20:43 +0000 (11:20 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Mon, 4 Nov 2019 10:20:43 +0000 (11:20 +0100)
include/simgrid/simix.h
src/simix/libsmx.cpp

index 8899662..dc02ba4 100644 (file)
@@ -152,8 +152,8 @@ XBT_ATTRIB_DEPRECATED_v328("Please use Actor::suspend()") XBT_PUBLIC void simcal
 XBT_ATTRIB_DEPRECATED_v328("Please use Actor::join()") XBT_PUBLIC
     void simcall_process_join(smx_actor_t process, double timeout);
 
-/* Sleep control */
-XBT_PUBLIC e_smx_state_t simcall_process_sleep(double duration);
+XBT_ATTRIB_DEPRECATED_v329("Please use sg_actor_sleep_for()") XBT_PUBLIC e_smx_state_t
+    simcall_process_sleep(double duration);
 SG_END_DECL
 
 /************************** Communication simcalls ****************************/
index 49d76b5..387fd23 100644 (file)
@@ -44,17 +44,17 @@ unsigned int simcall_execution_waitany_for(simgrid::kernel::activity::ExecImpl*
   return simcall_BODY_execution_waitany_for(execs, count, timeout);
 }
 
-void simcall_process_join(smx_actor_t process, double timeout)
+void simcall_process_join(smx_actor_t process, double timeout) // XBT_DEPRECATED_v328
 {
   SIMIX_process_self()->join(process, timeout);
 }
 
-void simcall_process_suspend(smx_actor_t process)
+void simcall_process_suspend(smx_actor_t process) // XBT_DEPRECATED_v328
 {
   process->iface()->suspend();
 }
 
-e_smx_state_t simcall_process_sleep(double duration)
+e_smx_state_t simcall_process_sleep(double duration) // XBT_DEPRECATED_v329
 {
   SIMIX_process_self()->sleep(duration);
   return SIMIX_DONE;