Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
deprecate MSG_set_function, that seems useless since we cannot bypass the parser...
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 14 Nov 2019 09:39:20 +0000 (10:39 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 14 Nov 2019 16:35:46 +0000 (17:35 +0100)
docs/source/app_msg.rst
include/simgrid/msg.h
src/simix/smx_deployment.cpp

index 8b6735f..dbf2749 100644 (file)
@@ -44,7 +44,6 @@ The basic workflow is the following:
 .. doxygendefine:: MSG_init
 .. doxygenfunction:: MSG_launch_application
 .. doxygenfunction:: MSG_main
-.. doxygenfunction:: MSG_set_function
 
 Process Management
 ==================
index 26de619..a29e549 100644 (file)
@@ -303,8 +303,12 @@ XBT_PUBLIC void MSG_function_register_default(xbt_main_func_t code);
 XBT_PUBLIC void MSG_create_environment(const char* file);
 /** @brief Creates the application described in the provided file */
 XBT_PUBLIC void MSG_launch_application(const char* file);
+
+#ifndef DOXYGEN
 /** @brief register functions bypassing the parser */
-XBT_PUBLIC void MSG_set_function(const char* host_id, const char* function_name, xbt_dynar_t arguments);
+XBT_ATTRIB_DEPRECATED_v329("This function will be removed. Speak up if you need it.") XBT_PUBLIC
+    void MSG_set_function(const char* host_id, const char* function_name, xbt_dynar_t arguments);
+#endif
 
 /** @brief A clock (in second). */
 XBT_PUBLIC double MSG_get_clock();
index f32f5ff..1955bf7 100644 (file)
@@ -60,7 +60,7 @@ simgrid::simix::ActorCodeFactory& SIMIX_get_actor_code_factory(const std::string
 /** @brief Bypass the parser, get arguments, and set function to each process */
 
 void SIMIX_process_set_function(const char* process_host, const char* process_function, xbt_dynar_t arguments,
-                                double process_start_time, double process_kill_time)
+                                double process_start_time, double process_kill_time) // XBT_ATTRIB_DEPRECATED_v329
 {
   simgrid::kernel::routing::ActorCreationArgs actor;