Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
NullThreadMng.h
1// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
2//-----------------------------------------------------------------------------
3// Copyright 2000-2026 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/* NullThreadMng.h (C) 2000-2010 */
9/* */
10/* Single-threaded mode thread manager. */
11/*---------------------------------------------------------------------------*/
12#ifndef ARCANE_UTILS_NULLTHREADMNG_H
13#define ARCANE_UTILS_NULLTHREADMNG_H
14/*---------------------------------------------------------------------------*/
15/*---------------------------------------------------------------------------*/
16
17#include "arccore/concurrency/NullThreadImplementation.h"
19#include "arcane/utils/IThreadMng.h"
20
21/*---------------------------------------------------------------------------*/
22/*---------------------------------------------------------------------------*/
23
24namespace Arcane
25{
26
27/*---------------------------------------------------------------------------*/
28/*---------------------------------------------------------------------------*/
29
33class ARCANE_UTILS_EXPORT NullThreadMng
34: public IThreadMng
35{
36 public:
37
38 virtual ~NullThreadMng() {}
39
40 public:
41
42 virtual void beginCriticalSection() {}
43 virtual void endCriticalSection() {}
44};
45
46/*---------------------------------------------------------------------------*/
47/*---------------------------------------------------------------------------*/
48
49} // namespace Arcane
50
51/*---------------------------------------------------------------------------*/
52/*---------------------------------------------------------------------------*/
53
54#endif
Declarations of types used in Arcane.
Interface of a thread manager.
Definition IThreadMng.h:32
Thread manager in single-threaded mode.
-- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature --