Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
[simgrid.git] / src / simix / smx_context.c
index c3bc155..15772ca 100644 (file)
@@ -28,17 +28,12 @@ void SIMIX_context_mod_init(void)
     if (factory_initializer_to_use) {
       (*factory_initializer_to_use)(&(simix_global->context_factory));
     } else {
-#ifdef CONTEXT_THREADS
-      /* context switch based os thread */
+#ifdef CONTEXT_THREADS /* Use os threads (either pthreads or windows ones) */
       SIMIX_ctx_thread_factory_init(&simix_global->context_factory);
-#elif defined(CONTEXT_UCONTEXT)
-      /* context switch based ucontext */
+#elif defined(CONTEXT_UCONTEXT) /* use ucontext */
       SIMIX_ctx_sysv_factory_init(&simix_global->context_factory);
-#elif defined(_XBT_WIN32)
-      /* context switch based windows */
 #else
-      /* context switch is not allowed on Windows */
-#error ERROR [__FILE__, line __LINE__]: no context based implementation specified.
+#error ERROR [__FILE__, line __LINE__]: no context implementation specified.
 #endif
     }
   }