Arcane  v3.15.0.0
Documentation développeur
Chargement...
Recherche...
Aucune correspondance
arcane/src/arcane/parallel/thread/GlibThreadImplementation.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/* GlibThreadImplementation.cc (C) 2000-2025 */
9/* */
10/* Implémentation des threads utilisant la glib. */
11/*---------------------------------------------------------------------------*/
12/*---------------------------------------------------------------------------*/
13
14#include "arccore/concurrency/GlibThreadImplementation.h"
15
17#include "arcane/utils/IThreadImplementationService.h"
18#include "arcane/utils/internal/DependencyInjection.h"
19
20#include "arcane/core/FactoryService.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25namespace Arcane
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
35{
36 public:
37
39 {
40 }
41
42 public:
43
44 void build() {}
45};
46
47/*---------------------------------------------------------------------------*/
48/*---------------------------------------------------------------------------*/
49
52{
53 public:
54
57
58 public:
59
60 void build() {}
61
62 public:
63
64 Ref<IThreadImplementation> createImplementation() override
65 {
66 return Arccore::Concurrency::createGlibThreadImplementation();
67 }
68};
69
70/*---------------------------------------------------------------------------*/
71/*---------------------------------------------------------------------------*/
72
73// TODO: a supprimer maintenant qu'on utilise 'DependencyInjection'
77
78ARCANE_DI_REGISTER_PROVIDER(GlibThreadImplementationService,
79 DependencyInjection::ProviderProperty("GlibThreadImplementationService"),
80 ARCANE_DI_INTERFACES(IThreadImplementationService),
81 ARCANE_DI_EMPTY_CONSTRUCTOR());
82
83/*---------------------------------------------------------------------------*/
84/*---------------------------------------------------------------------------*/
85
86} // namespace Arcane
87
88/*---------------------------------------------------------------------------*/
89/*---------------------------------------------------------------------------*/
#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.
Implémentation de ITreadImplementation avec la 'Glib'.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-