From 1257824e37d3761be3c60323d81fa7dce6ae82c0 Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 29 Jun 2005 22:31:00 +0000 Subject: [PATCH 1/1] disable MSG_get_msgload until we find a good specification for it git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1491 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/msg/msg.h | 2 +- src/msg/gos.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/msg/msg.h b/include/msg/msg.h index 8df046d7e9..b589ff63d7 100644 --- a/include/msg/msg.h +++ b/include/msg/msg.h @@ -38,7 +38,7 @@ void *MSG_host_get_data(m_host_t host); const char *MSG_host_get_name(m_host_t host); m_host_t MSG_host_self(void); int MSG_get_host_msgload(m_host_t host); -int MSG_get_msgload(void); +/* int MSG_get_msgload(void); This function lacks specification; discard it */ void MSG_create_environment(const char *file); diff --git a/src/msg/gos.c b/src/msg/gos.c index e2382d2095..b6c1235f7a 100644 --- a/src/msg/gos.c +++ b/src/msg/gos.c @@ -499,12 +499,13 @@ MSG_error_t MSG_process_sleep(double nb_sec) * \brief Return the number of MSG tasks currently running on a * the host of the current running process. */ -int MSG_get_msgload(void) +static int MSG_get_msgload(void) { m_process_t process; CHECK_HOST(); + xbt_abort(0, "This function is still to be specified correctly (what do you mean by 'load', exactly?). In the meantime, please don't use it"); process = MSG_process_self(); return xbt_fifo_size(process->simdata->host->simdata->process_list); } -- 2.20.1