Arcane  v4.1.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 "arccore/base/internal/DependencyInjection.h"
17
18#include "arcane/utils/FatalErrorException.h"
20#include "arcane/utils/IThreadImplementationService.h"
21
22/*---------------------------------------------------------------------------*/
23/*---------------------------------------------------------------------------*/
24
25namespace Arcane
26{
27
28/*---------------------------------------------------------------------------*/
29/*---------------------------------------------------------------------------*/
30
31class StdThreadImplementationService
33{
34 public:
35
36 StdThreadImplementationService() = default;
37
38 public:
39
40 void build() {}
41
42 public:
43
44 Ref<IThreadImplementation> createImplementation() override
45 {
46 return Arccore::Concurrency::createStdThreadImplementation();
47 }
48};
49
50/*---------------------------------------------------------------------------*/
51/*---------------------------------------------------------------------------*/
52
53ARCANE_DI_REGISTER_PROVIDER(StdThreadImplementationService,
54 DependencyInjection::ProviderProperty("StdThreadImplementationService"),
55 ARCANE_DI_INTERFACES(IThreadImplementationService),
56 ARCANE_DI_EMPTY_CONSTRUCTOR());
57
58/*---------------------------------------------------------------------------*/
59/*---------------------------------------------------------------------------*/
60
61} // namespace Arcane
62
63/*---------------------------------------------------------------------------*/
64/*---------------------------------------------------------------------------*/
Déclarations des types utilisés dans Arcane.
Interface d'un service de gestion des threads.
Référence à une instance.
-*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-