X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1b30f00857843f1cee60814ed519ff82e8ef4787..fda00496f6a31c2f09ed65b91d6052c2e50686df:/src/msg/msg_mailbox.c diff --git a/src/msg/msg_mailbox.c b/src/msg/msg_mailbox.c index b8c72c7f94..ab3e89f70a 100644 --- a/src/msg/msg_mailbox.c +++ b/src/msg/msg_mailbox.c @@ -1,3 +1,11 @@ +/* Mailboxes in MSG */ + +/* Copyright (c) 2008, 2009, 2010. The SimGrid Team. + * All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + #include "mailbox.h" #include "msg/private.h" @@ -111,14 +119,16 @@ MSG_mailbox_get_task_ext(msg_mailbox_t mailbox, m_task_t *task, m_host_t host, xbt_ex_t e; MSG_error_t ret = MSG_OK; smx_comm_t comm; - +#ifdef HAVE_TRACING + double start_time = 0; +#endif /* We no longer support getting a task from a specific host */ if (host) THROW_UNIMPLEMENTED; CHECK_HOST(); #ifdef HAVE_TRACING TRACE_msg_task_get_start (); - double start_time = MSG_get_clock(); + start_time = MSG_get_clock(); #endif memset(&comm,0,sizeof(comm)); @@ -175,11 +185,13 @@ MSG_mailbox_put_with_timeout(msg_mailbox_t mailbox, m_task_t task, MSG_error_t ret = MSG_OK; simdata_task_t t_simdata = NULL; m_process_t process = MSG_process_self(); - +#ifdef HAVE_TRACING + int call_end = 0; +#endif CHECK_HOST(); #ifdef HAVE_TRACING - int call_end = TRACE_msg_task_put_start (task); //must be after CHECK_HOST() + call_end = TRACE_msg_task_put_start (task); //must be after CHECK_HOST() #endif