Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Implement a dynamic parallel execution mode.
[simgrid.git] / src / simix / smx_context_thread.c
index 6038730..9eae0fd 100644 (file)
@@ -50,7 +50,7 @@ void SIMIX_ctx_thread_factory_init(smx_context_factory_t * factory)
   (*factory)->stop = smx_ctx_thread_stop;
   (*factory)->suspend = smx_ctx_thread_suspend;
 
-  if(_surf_parallel_contexts)
+  if (SIMIX_context_is_parallel())
     (*factory)->runall = smx_ctx_thread_runall_parallel;
   else
     (*factory)->runall = smx_ctx_thread_runall_serial;