From 25d0f572e51dd9830c815a99157176ee9df751e5 Mon Sep 17 00:00:00 2001 From: markls Date: Wed, 7 Nov 2007 22:54:19 +0000 Subject: [PATCH] small change to calls to SIMIX_action_communicate and SIMIX_action_execute git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4990 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/smpi/smpi_bench.c | 3 +-- src/smpi/smpi_sender.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/smpi/smpi_bench.c b/src/smpi/smpi_bench.c index b43a1280f7..a301b69efc 100644 --- a/src/smpi/smpi_bench.c +++ b/src/smpi/smpi_bench.c @@ -14,13 +14,12 @@ void smpi_bench_end() { double duration; smx_host_t host; - char computation[] = "computation"; smx_action_t action; xbt_os_timer_stop(smpi_global->timer); duration = xbt_os_timer_elapsed(smpi_global->timer); host = SIMIX_host_self(); - action = SIMIX_action_execute(host, computation, duration * SMPI_DEFAULT_SPEED); + action = SIMIX_action_execute(host, "computation", duration * SMPI_DEFAULT_SPEED); SIMIX_register_action_to_condition(action, smpi_global->timer_cond); SIMIX_cond_wait(smpi_global->timer_cond, smpi_global->timer_mutex); diff --git a/src/smpi/smpi_sender.c b/src/smpi/smpi_sender.c index f02e0abfa0..0035d63897 100644 --- a/src/smpi/smpi_sender.c +++ b/src/smpi/smpi_sender.c @@ -15,7 +15,6 @@ int smpi_sender(int argc, char **argv) smx_host_t dhost; - char communication[] = "communication"; smx_action_t action; smpi_received_message_t message; @@ -91,7 +90,7 @@ int smpi_sender(int argc, char **argv) request->completed = 1; } - action = SIMIX_action_communicate(shost, dhost, communication, request->datatype->size * request->count, -1.0); + action = SIMIX_action_communicate(shost, dhost, "communication", request->datatype->size * request->count, -1.0); SIMIX_register_action_to_condition(action, request->cond); SIMIX_cond_wait(request->cond, request->mutex); -- 2.20.1