Arcane  v4.1.0.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ConcurrencyBase.cc
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2025 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
4// See the top-level COPYRIGHT file for details.
5// SPDX-License-Identifier: Apache-2.0
6//-----------------------------------------------------------------------------
7/*---------------------------------------------------------------------------*/
8/* ConcurrencyBase.cc (C) 2000-2025 */
9/* */
10/* Classes de base pour la gestion du multi-threading. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arccore/base/ConcurrencyBase.h"
15
16/*---------------------------------------------------------------------------*/
17/*---------------------------------------------------------------------------*/
18
19namespace Arcane
20{
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25Int32 ConcurrencyBase::m_max_allowed_thread = 1;
26ParallelLoopOptions ConcurrencyBase::m_default_loop_options;
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
38{
39 if (v < 0)
40 v = 1;
41 m_max_allowed_thread = v;
42}
43
44/*---------------------------------------------------------------------------*/
45/*---------------------------------------------------------------------------*/
46
47} // End namespace Arcane
48
49/*---------------------------------------------------------------------------*/
50/*---------------------------------------------------------------------------*/
static void _setMaxAllowedThread(Int32 v)
Positionne le nombre maximum de thread à utiliser.
Options d'exécution d'une boucle parallèle en multi-thread.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
std::int32_t Int32
Type entier signé sur 32 bits.