]> AND Public Git Repository - simgrid.git/blobdiff - src/msg/msg_mailbox.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add MSG_set_function function, used to bypass the deployment file
[simgrid.git] / src / msg / msg_mailbox.c
index 409801c85f1e7525be3b2503b88cce84cc38047b..ab3e89f70ad0828e343b957e7e94ab1964f73083 100644 (file)
@@ -119,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));
@@ -183,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