X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/290bbd1eb35bdada1e1db92047cd27e0127c241a..d4bde2116e4f10c14aa2729b83d4119e24043d4d:/src/simix/smx_context.cpp diff --git a/src/simix/smx_context.cpp b/src/simix/smx_context.cpp index 3e46ecec03..db956825a5 100644 --- a/src/simix/smx_context.cpp +++ b/src/simix/smx_context.cpp @@ -6,11 +6,16 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include +#include + #include #include #include +#include #include +#include #include "src/internal_config.h" #include "xbt/log.h" @@ -40,18 +45,18 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_context, simix, "Context switching mechanism"); -static std::pair context_factories[] = { +static std::pair context_factories[] = { #if HAVE_RAW_CONTEXTS - { "raw", &simgrid::simix::raw_factory }, + { "raw", &simgrid::kernel::context::raw_factory }, #endif #if HAVE_UCONTEXT_CONTEXTS - { "ucontext", &simgrid::simix::sysv_factory }, + { "ucontext", &simgrid::kernel::context::sysv_factory }, #endif #if HAVE_BOOST_CONTEXTS - { "boost", &simgrid::simix::boost_factory }, + { "boost", &simgrid::kernel::context::boost_factory }, #endif #if HAVE_THREAD_CONTEXTS - { "thread", &simgrid::simix::thread_factory }, + { "thread", &simgrid::kernel::context::thread_factory }, #endif }; @@ -126,8 +131,8 @@ void SIMIX_context_mod_init(void) if (simix_global->context_factory) return; /* select the context factory to use to create the contexts */ - if (simgrid::simix::factory_initializer) { // Give Java a chance to hijack the factory mechanism - simix_global->context_factory = simgrid::simix::factory_initializer(); + if (simgrid::kernel::context::factory_initializer) { // Give Java a chance to hijack the factory mechanism + simix_global->context_factory = simgrid::kernel::context::factory_initializer(); return; } /* use the factory specified by --cfg=contexts/factory:value */