Arcane  v3.14.10.0
Documentation utilisateur
Chargement...
Recherche...
Aucune correspondance
NullThreadMng.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#include "arccore/concurrency/NullThreadImplementation.h"
9/*---------------------------------------------------------------------------*/
10/* NullThreadMng.h (C) 2000-2010 */
11/* */
12/* Gestionnaire de thread en mode mono-thread. */
13/*---------------------------------------------------------------------------*/
14#ifndef ARCANE_UTILS_NULLTHREADMNG_H
15#define ARCANE_UTILS_NULLTHREADMNG_H
16/*---------------------------------------------------------------------------*/
17/*---------------------------------------------------------------------------*/
18
19#include "arcane/utils/IThreadMng.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24ARCANE_BEGIN_NAMESPACE
25
26/*---------------------------------------------------------------------------*/
27/*---------------------------------------------------------------------------*/
28/*!
29 * \brief Gestionnaire de thread en mode mono-thread.
30 */
31class ARCANE_UTILS_EXPORT NullThreadMng
32: public IThreadMng
33{
34 public:
35 virtual ~NullThreadMng(){}
36 public:
37 virtual void beginCriticalSection() {}
38 virtual void endCriticalSection() {}
39};
40
41/*---------------------------------------------------------------------------*/
42/*---------------------------------------------------------------------------*/
43
44ARCANE_END_NAMESPACE
45
46/*---------------------------------------------------------------------------*/
47/*---------------------------------------------------------------------------*/
48
49#endif
Déclarations des types utilisés dans Arcane.
Interface d'un gestionnaire de thread.
Definition IThreadMng.h:30
Gestionnaire de thread en mode mono-thread.