X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/81588aeededcff1407c760226b43f347eb832b39..ff4e6203e4fb526267cc197ee3fa41e5d075608e:/src/simix/smx_context.cpp diff --git a/src/simix/smx_context.cpp b/src/simix/smx_context.cpp index 7205f47836..f8c7e74473 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" @@ -42,16 +47,16 @@ XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_context, simix, "Context switching mechani static std::pair context_factories[] = { #if HAVE_RAW_CONTEXTS - { "raw", simgrid::simix::raw_factory }, + { "raw", &simgrid::simix::raw_factory }, #endif #if HAVE_UCONTEXT_CONTEXTS - { "ucontext", simgrid::simix::sysv_factory }, + { "ucontext", &simgrid::simix::sysv_factory }, #endif #if HAVE_BOOST_CONTEXTS - { "boost", simgrid::simix::boost_factory }, + { "boost", &simgrid::simix::boost_factory }, #endif #if HAVE_THREAD_CONTEXTS - { "thread", simgrid::simix::thread_factory }, + { "thread", &simgrid::simix::thread_factory }, #endif }; @@ -235,8 +240,7 @@ int SIMIX_context_is_parallel(void) { } /** - * \brief Returns the number of parallel threads used - * for the user contexts. + * @brief Returns the number of parallel threads used for the user contexts. * \return the number of threads (1 means no parallelism) */ int SIMIX_context_get_nthreads(void) {