Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill old implementation of SIMIX_process_self.
authorpini <pini@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 2 Dec 2010 17:02:13 +0000 (17:02 +0000)
committerpini <pini@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 2 Dec 2010 17:02:13 +0000 (17:02 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8908 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/simix/smx_process.c

index 6539986..5cf98a1 100644 (file)
@@ -25,7 +25,7 @@ static unsigned long simix_process_count = 0;
 XBT_INLINE smx_process_t SIMIX_process_self(void)
 {
   if(simix_global)
-    return SIMIX_context_self();
+    return SIMIX_context_get_data(SIMIX_context_self());
   return NULL;
 }
 
@@ -491,21 +491,6 @@ void SIMIX_process_sleep_resume(smx_action_t action)
   surf_workstation_model->resume(action->sleep.surf_sleep);
 }
 
-/**
- * \brief Returns the current agent.
- *
- * This functions returns the currently running SIMIX process.
- *
- * \return The SIMIX process
- */
-XBT_INLINE smx_process_t SIMIX_process_self(void)
-{
-  if(simix_global)
-    return SIMIX_context_get_data(SIMIX_context_self());
-
-  return NULL;
-}
-
 /** 
  * Calling this function makes the process to yield.
  * Only the processes can call this function, giving back the control to maestro