Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill the dangerous MSG_task_ref() now that the bindings don't use it anymore
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 9 Apr 2010 12:34:10 +0000 (12:34 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 9 Apr 2010 12:34:10 +0000 (12:34 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7511 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/msg/msg.h
src/msg/task.c

index f75907f..7610386 100644 (file)
@@ -113,7 +113,6 @@ XBT_PUBLIC(m_host_t) MSG_task_get_source(m_task_t task);
 XBT_PUBLIC(const char *) MSG_task_get_name(m_task_t task);
 XBT_PUBLIC(MSG_error_t) MSG_task_cancel(m_task_t task);
 XBT_PUBLIC(MSG_error_t) MSG_task_destroy(m_task_t task);
 XBT_PUBLIC(const char *) MSG_task_get_name(m_task_t task);
 XBT_PUBLIC(MSG_error_t) MSG_task_cancel(m_task_t task);
 XBT_PUBLIC(MSG_error_t) MSG_task_destroy(m_task_t task);
-XBT_PUBLIC(void) MSG_task_ref(m_task_t t);
 
 XBT_PUBLIC(MSG_error_t) MSG_task_get(m_task_t * task, m_channel_t channel);
 XBT_PUBLIC(MSG_error_t) MSG_task_get_with_timeout(m_task_t * task,
 
 XBT_PUBLIC(MSG_error_t) MSG_task_get(m_task_t * task, m_channel_t channel);
 XBT_PUBLIC(MSG_error_t) MSG_task_get_with_timeout(m_task_t * task,
index e3bf5c1..625b54e 100644 (file)
@@ -79,11 +79,6 @@ m_task_t MSG_task_create(const char *name, double compute_duration,
   return task;
 }
 
   return task;
 }
 
-/** prevent the task from being destroyed too quickly (but also prevent it from being sent). Mainly useful in bindings */
-void MSG_task_ref(m_task_t t) {
-  t->simdata->refcount++;
-}
-
 /** \ingroup m_task_management
  * \brief Return the user data of a #m_task_t.
  *
 /** \ingroup m_task_management
  * \brief Return the user data of a #m_task_t.
  *