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