Arcane  v3.15.0.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
StdThreadImplementationService.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/* StdThreadImplementationService.cc (C) 2000-2025 */
9/* */
10/* Implémentation des threads utilisant la bibliothèque standard C++. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arccore/concurrency/ConcurrencyGlobal.h"
15
16#include "arcane/utils/FatalErrorException.h"
18#include "arcane/utils/IThreadImplementationService.h"
19#include "arcane/utils/internal/DependencyInjection.h"
20
21#include "arcane/core/FactoryService.h"
22
23/*---------------------------------------------------------------------------*/
24/*---------------------------------------------------------------------------*/
25
26namespace Arcane
27{
28
29/*---------------------------------------------------------------------------*/
30/*---------------------------------------------------------------------------*/
31
34{
35 public:
36
39
40 public:
41
42 void build() {}
43
44 public:
45
46 Ref<IThreadImplementation> createImplementation() override
47 {
48 return Arccore::Concurrency::createStdThreadImplementation();
49 }
50};
51
52/*---------------------------------------------------------------------------*/
53/*---------------------------------------------------------------------------*/
54
58
59ARCANE_DI_REGISTER_PROVIDER(StdThreadImplementationService,
60 DependencyInjection::ProviderProperty("StdThreadImplementationService"),
61 ARCANE_DI_INTERFACES(IThreadImplementationService),
62 ARCANE_DI_EMPTY_CONSTRUCTOR());
63
64/*---------------------------------------------------------------------------*/
65/*---------------------------------------------------------------------------*/
66
67} // namespace Arcane
68
69/*---------------------------------------------------------------------------*/
70/*---------------------------------------------------------------------------*/
#define ARCANE_REGISTER_APPLICATION_FACTORY(aclass, ainterface, aname)
Enregistre un service de fabrique pour la classe aclass.
Déclarations des types utilisés dans Arcane.
Interface d'un service de gestion des threads.
Lecteur des fichiers de maillage via la bibliothèque LIMA.
Definition Lima.cc:149
Structure contenant les informations pour créer un service.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-