ATLAS Offline Software
DBLock.cxx
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration.
3  */
12 #include "DBLock/DBLock.h"
13 
14 
15 namespace Athena {
16 
17 
19 std::recursive_mutex DBLock::m_mutex;
20 
21 
26  : m_lockPtr (std::make_shared<lock_t> (m_mutex))
27 {
28 }
29 
30 
35 {
36 }
37 
38 
39 } // namespace Athena
Athena::DBLock::DBLock
DBLock()
Constructor.
Definition: DBLock.cxx:25
Athena
Some weak symbol referencing magic...
Definition: AthLegacySequence.h:21
Athena::DBLock::lock_t
std::unique_lock< std::recursive_mutex > lock_t
Shared pointer to underlying lock.
Definition: DBLock.h:62
Athena::DBLock::~DBLock
~DBLock()
Destructor.
Definition: DBLock.cxx:34
DBLock.h
Common database lock.
Athena::DBLock::m_mutex
static std::recursive_mutex m_mutex
Global mutex to protect database access.
Definition: DBLock.h:58