From 53ce86d0b99163e9f523ef8f994854474d297328 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Mon, 11 Feb 2019 14:08:00 +0100 Subject: [PATCH] Deprecate an unused function. --- include/simgrid/simix.hpp | 3 ++- src/simix/ActorImpl.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/simgrid/simix.hpp b/include/simgrid/simix.hpp index b01db1492c..7cabe4f7e6 100644 --- a/include/simgrid/simix.hpp +++ b/include/simgrid/simix.hpp @@ -65,7 +65,8 @@ template typename std::result_of::type simcall(F&& code) return result.get(); } -XBT_PUBLIC const std::vector& process_get_runnable(); +XBT_ATTRIB_DEPRECATED_v325("Please manifest if you actually need this function.") + XBT_PUBLIC const std::vector& process_get_runnable(); // What's executed as SIMIX actor code: typedef std::function ActorCode; diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index c23b3b86c2..c60f9cc095 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -702,7 +702,9 @@ void SIMIX_process_yield(smx_actor_t self) } } -/** @brief Returns the list of processes to run. */ +/** @brief Returns the list of processes to run. + * @deprecated + */ const std::vector& simgrid::simix::process_get_runnable() { return simix_global->process_to_run; -- 2.20.1