DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep
Rev:Unversioneddirectory
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
DDCore
include
DD4hep
Mutex.h
Go to the documentation of this file.
1
//==========================================================================
2
// AIDA Detector description implementation for LCD
3
//--------------------------------------------------------------------------
4
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5
// All rights reserved.
6
//
7
// For the licensing terms see $DD4hepINSTALL/LICENSE.
8
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9
//
10
// Author : M.Frank
11
//
12
//==========================================================================
13
14
#ifndef DD4HEP_MUTEX_H
15
#define DD4HEP_MUTEX_H
16
17
// C/C++ include files
18
#if __cplusplus >= 201103L
19
#include <mutex>
20
#endif
21
23
namespace
DD4hep {
24
#if __cplusplus >= 201103L
25
typedef
std::recursive_mutex dd4hep_mutex_t;
26
typedef
std::lock_guard<dd4hep_mutex_t> dd4hep_lock_t;
27
#else
28
struct
dd4hep_mutex_t
{
29
dd4hep_mutex_t
() {}
30
~dd4hep_mutex_t
() {}
31
int
lock
() {
return
0;}
32
int
trylock
() {
return
0;}
33
int
unlock
() {
return
0;}
34
};
35
struct
dd4hep_lock_t
{
36
dd4hep_lock_t
(
dd4hep_mutex_t
&,
bool
=
true
) {}
37
~dd4hep_lock_t
() {}
38
};
39
#endif
40
}
41
#endif // DD4HEP_MUTEX_H
DD4hep::dd4hep_mutex_t::~dd4hep_mutex_t
~dd4hep_mutex_t()
Definition:
Mutex.h:30
DD4hep::dd4hep_lock_t::~dd4hep_lock_t
~dd4hep_lock_t()
Definition:
Mutex.h:37
DD4hep::dd4hep_mutex_t::trylock
int trylock()
Definition:
Mutex.h:32
DD4hep::dd4hep_lock_t::dd4hep_lock_t
dd4hep_lock_t(dd4hep_mutex_t &, bool=true)
Definition:
Mutex.h:36
DD4hep::dd4hep_mutex_t::lock
int lock()
Definition:
Mutex.h:31
DD4hep::dd4hep_mutex_t::unlock
int unlock()
Definition:
Mutex.h:33
DD4hep::dd4hep_mutex_t::dd4hep_mutex_t
dd4hep_mutex_t()
Definition:
Mutex.h:29
DD4hep::dd4hep_lock_t
Definition:
Mutex.h:35
DD4hep::dd4hep_mutex_t
Definition:
Mutex.h:28
Generated on Fri Dec 2 2016 12:31:07 for DD4hep by
1.8.6