Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
empty out src/simix/smx_context.cpp
[simgrid.git] / src / simix / smx_context.cpp
1 /* a fast and simple context switching library                              */
2
3 /* Copyright (c) 2009-2021. The SimGrid Team. All rights reserved.          */
4
5 /* This program is free software; you can redistribute it and/or modify it
6  * under the terms of the license (GNU LGPL) which comes with this package. */
7
8 #include "src/kernel/context/Context.hpp"
9
10 XBT_LOG_NEW_DEFAULT_SUBCATEGORY(simix_context, simix, "Context switching mechanism");
11
12 int SIMIX_context_is_parallel() // XBT_ATTRIB_DEPRECATED_v333
13 {
14   return simgrid::kernel::context::is_parallel();
15 }
16
17 int SIMIX_context_get_nthreads() // XBT_ATTRIB_DEPRECATED_v333
18 {
19   return simgrid::kernel::context::get_nthreads();
20 }
21
22 void SIMIX_context_set_nthreads(int nb_threads) // XBT_ATTRIB_DEPRECATED_v333
23 {
24   simgrid::kernel::context::set_nthreads(nb_threads);
25 }
26
27 e_xbt_parmap_mode_t SIMIX_context_get_parallel_mode() // XBT_ATTRIB_DEPRECATED_v333
28 {
29   return simgrid::kernel::context::get_parallel_mode();
30 }
31
32 void SIMIX_context_set_parallel_mode(e_xbt_parmap_mode_t mode) // XBT_ATTRIB_DEPRECATED_v333
33 {
34   simgrid::kernel::context::set_parallel_mode(mode);
35 }