Arcane  v3.15.0.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-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/* ThreadBindingMng.h (C) 2000-2025 */
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
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
30class ARCANE_IMPL_EXPORT ThreadBindingMng
31{
32 public:
33
36
37 public:
38
39 void initialize(ITraceMng* tm, const String& strategy);
40 void finalize();
41
42 private:
43
44 ITraceMng* m_trace_mng = nullptr;
45 String m_bind_strategy;
46 Int32 m_current_thread_index = 0;
47 Int32 m_max_thread = 0;
48 IObserver* m_thread_created_callback = nullptr;
49 bool m_has_callback = false;
50
51 private:
52
53 void _createThreadCallback();
54};
55
56/*---------------------------------------------------------------------------*/
57/*---------------------------------------------------------------------------*/
58
59} // End namespace Arcane
60
61/*---------------------------------------------------------------------------*/
62/*---------------------------------------------------------------------------*/
63
64#endif
Interface d'un observateur.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:149
Interface du gestionnaire de traces.
Chaîne de caractères unicode.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-