From a145d4fe15830ef87dbe3f62e749d67daf2a0cbf Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 28 Feb 2012 11:30:53 +0100 Subject: [PATCH] implement MSG_processes_as_dynar (closes gforge #13642) --- include/msg/msg.h | 1 + src/msg/msg_process.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/msg/msg.h b/include/msg/msg.h index c5a41d1060..3aef4bb39b 100644 --- a/include/msg/msg.h +++ b/include/msg/msg.h @@ -104,6 +104,7 @@ XBT_PUBLIC(const char *) MSG_process_get_name(m_process_t process); XBT_PUBLIC(int) MSG_process_self_PID(void); XBT_PUBLIC(int) MSG_process_self_PPID(void); XBT_PUBLIC(m_process_t) MSG_process_self(void); +XBT_PUBLIC(xbt_dynar_t) MSG_processes_as_dynar(void); /*property handlers*/ XBT_PUBLIC(xbt_dict_t) MSG_process_get_properties(m_process_t process); diff --git a/src/msg/msg_process.c b/src/msg/msg_process.c index 59eb787740..a50ef41e50 100644 --- a/src/msg/msg_process.c +++ b/src/msg/msg_process.c @@ -312,6 +312,11 @@ m_process_t MSG_process_from_PID(int PID) return SIMIX_process_from_PID(PID); } +/** @brief returns a list of all currently existing processes */ +xbt_dynar_t MSG_processes_as_dynar(void) { + return SIMIX_processes_as_dynar(); +} + /** \ingroup m_process_management * \brief Returns the process ID of \a process. * -- 2.20.1