/* 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. */
{
Parmap<T>& parmap = data->parmap;
unsigned round = 0;
- kernel::context::Context* context = simix_global->context_factory->create_context(std::function<void()>(), nullptr);
+ kernel::context::Context* context =
+ simix_global->get_context_factory()->create_context(std::function<void()>(), nullptr);
kernel::context::Context::set_current(context);
XBT_CDEBUG(xbt_parmap, "New worker thread created");