From: Martin Quinson Date: Mon, 20 Mar 2017 20:41:17 +0000 (+0100) Subject: msg: make another function public, even if it's C++ only X-Git-Tag: v3_15~51 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/15d9d57a4bfaa1db9a7317058d54b80abb476360?hp=af9b26b7129b892a77f9192815948a63d070532f msg: make another function public, even if it's C++ only --- diff --git a/include/simgrid/msg.h b/include/simgrid/msg.h index d431064bcd..64596fddf3 100644 --- a/include/simgrid/msg.h +++ b/include/simgrid/msg.h @@ -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 code, void* data, msg_host_t host, + xbt_dict_t properties); +#endif + #endif diff --git a/src/msg/msg_private.h b/src/msg/msg_private.h index f4551c0e48..7ccb878f97 100644 --- a/src/msg/msg_private.h +++ b/src/msg/msg_private.h @@ -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 code, void* data, msg_host_t host, - xbt_dict_t properties); - inline void simdata_task::setUsed() { if (this->isused)