From 15d9d57a4bfaa1db9a7317058d54b80abb476360 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Mon, 20 Mar 2017 21:41:17 +0100 Subject: [PATCH 1/1] msg: make another function public, even if it's C++ only --- include/simgrid/msg.h | 7 +++++++ src/msg/msg_private.h | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) 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) -- 2.20.1