Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
msg: make another function public, even if it's C++ only
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 20 Mar 2017 20:41:17 +0000 (21:41 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 20 Mar 2017 21:46:32 +0000 (22:46 +0100)
include/simgrid/msg.h
src/msg/msg_private.h

index d431064..64596fd 100644 (file)
@@ -501,4 +501,11 @@ XBT_PUBLIC(smx_context_t) MSG_process_get_smx_ctx(msg_process_t process);
 
 
 SG_END_DECL()
+
+#ifdef __cplusplus
+XBT_PUBLIC(msg_process_t)
+MSG_process_create_from_stdfunc(const char* name, std::function<void()> code, void* data, msg_host_t host,
+                                xbt_dict_t properties);
+#endif
+
 #endif
index f4551c0..7ccb878 100644 (file)
@@ -154,10 +154,6 @@ XBT_PRIVATE void TRACE_msg_process_sleep_out(msg_process_t process);
 
 SG_END_DECL()
 
-XBT_PUBLIC(msg_process_t)
-MSG_process_create_from_stdfunc(const char* name, std::function<void()> code, void* data, msg_host_t host,
-                                xbt_dict_t properties);
-
 inline void simdata_task::setUsed()
 {
   if (this->isused)