Reference documentation for deal.II version GIT b533f29dc3 2022-09-27 06:15:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
mutex.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2000 - 2022 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii_mutex_h
17 #define dealii_mutex_h
18 
19 
20 #include <deal.II/base/config.h>
21 
22 #include <mutex>
23 
25 
31 namespace Threads
32 {
51  class Mutex : public std::mutex
52  {
53  public:
57  Mutex() = default;
58 
63  Mutex(const Mutex &)
64  : std::mutex()
65  {}
66 
71  Mutex &
72  operator=(const Mutex &)
73  {
74  return *this;
75  }
76  };
77 } // namespace Threads
78 
84 #endif
Mutex()=default
Mutex & operator=(const Mutex &)
Definition: mutex.h:72
Mutex(const Mutex &)
Definition: mutex.h:63
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:457
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:458
Definition: mutex.h:32