Arcane
v3.14.10.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
ThreadBindingMng.h
1
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2
//-----------------------------------------------------------------------------
3
// Copyright 2000-2022 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
/* ThreadBindingMng.h (C) 2000-2021 */
9
/* */
10
/* Gestionnaire pour punaiser les threads. */
11
/*---------------------------------------------------------------------------*/
12
#ifndef ARCANE_IMPL_INTERNAL_THREADBINDERMNG_H
13
#define ARCANE_IMPL_INTERNAL_THREADBINDERMNG_H
14
/*---------------------------------------------------------------------------*/
15
/*---------------------------------------------------------------------------*/
16
17
#include "arcane/utils/String.h"
18
19
#include "arcane/ObserverPool.h"
20
21
/*---------------------------------------------------------------------------*/
22
/*---------------------------------------------------------------------------*/
23
24
namespace
Arcane
25
{
26
27
/*---------------------------------------------------------------------------*/
28
/*---------------------------------------------------------------------------*/
29
30
class
ARCANE_IMPL_EXPORT
ThreadBindingMng
31
{
32
public
:
33
34
void
initialize(
ITraceMng
*
tm
,
const
String
& strategy);
35
36
private
:
37
38
ObserverPool
m_observer_pool;
39
ITraceMng
* m_trace_mng =
nullptr
;
40
String
m_bind_strategy;
41
Int32 m_current_thread_index = 0;
42
Int32 m_max_thread = 0;
43
44
private
:
45
46
void
_createThreadCallback();
47
};
48
49
/*---------------------------------------------------------------------------*/
50
/*---------------------------------------------------------------------------*/
51
52
}
// End namespace Arcane
53
54
/*---------------------------------------------------------------------------*/
55
/*---------------------------------------------------------------------------*/
56
57
#endif
Arcane::LimaWrapper
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition
Lima.cc:120
Arcane::ObserverPool
Liste d'observateurs.
Definition
ObserverPool.h:41
Arcane::ThreadBindingMng
Definition
ThreadBindingMng.h:31
Arccore::ITraceMng
Interface du gestionnaire de traces.
Definition
arccore/src/trace/arccore/trace/ITraceMng.h:156
Arccore::String
Chaîne de caractères unicode.
Definition
arccore/src/base/arccore/base/String.h:70
Arcane
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
Definition
AcceleratorGlobal.h:36
arcane
impl
internal
ThreadBindingMng.h
Généré le Lundi 18 Novembre 2024 03:01:32 pour Arcane par
1.9.8