Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Context creation: Fix one OOP design issue
[simgrid.git] / src / kernel / context / Context.cpp
index 7104651..a5de192 100644 (file)
@@ -39,12 +39,12 @@ Context* ContextFactory::self()
   return SIMIX_context_get_current();
 }
 
-void ContextFactory::declare_context(void* context, std::size_t size)
+void Context::declare_context(std::size_t size)
 {
 #if SIMGRID_HAVE_MC
   /* Store the address of the stack in heap to compare it apart of heap comparison */
   if(MC_is_active())
-    MC_ignore_heap(context, size);
+    MC_ignore_heap(this, size);
 #endif
 }