X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7d28d93b90eedd2a49da8b9b990296669e46d05c..289295b516f9d71a4085af90fcce8db803779937:/src/include/xbt/parmap.hpp diff --git a/src/include/xbt/parmap.hpp b/src/include/xbt/parmap.hpp index bc3b9f6e78..ae03c0cd45 100644 --- a/src/include/xbt/parmap.hpp +++ b/src/include/xbt/parmap.hpp @@ -1,6 +1,6 @@ /* A thread pool (C++ version). */ -/* Copyright (c) 2004-2020 The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2004-2021 The SimGrid Team. All rights reserved. */ /* 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. */ @@ -288,7 +288,8 @@ template void Parmap::worker_main(ThreadData* data) { Parmap& parmap = data->parmap; unsigned round = 0; - kernel::context::Context* context = simix_global->context_factory->create_context(std::function(), nullptr); + kernel::context::Context* context = + simix_global->get_context_factory()->create_context(std::function(), nullptr); kernel::context::Context::set_current(context); XBT_CDEBUG(xbt_parmap, "New worker thread created");