Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Hadrien Benjamin Grasland
Gaudi
Commits
2d514f65
Commit
2d514f65
authored
Feb 02, 2019
by
Marco Clemencic
Browse files
Restore mutex to protect GaudiCommon::m_countersOwn (!839)
Closes #59
parents
8a169955
a21a2dcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
GaudiAlg/GaudiAlg/GaudiCommon.h
View file @
2d514f65
...
...
@@ -508,6 +508,7 @@ public:
return
const_cast
<
GaudiCommon
<
PBASE
>*>
(
this
)
->
counter
(
tag
);
}
inline
StatEntity
&
counter
(
const
std
::
string
&
tag
)
{
std
::
lock_guard
<
std
::
mutex
>
lock
(
m_countersOwnMutex
);
// Return referenced StatEntity if it already exists, else create it
auto
p
=
this
->
findCounter
(
tag
);
if
(
!
p
)
{
...
...
@@ -738,6 +739,8 @@ private:
mutable
Counter
m_exceptions
;
/// General counters
StatisticsOwn
m_countersOwn
;
/// The mutex for m_countersOwn
std
::
mutex
m_countersOwnMutex
;
// ==========================================================================
/// Pointer to the Update Manager Service instance
mutable
IUpdateManagerSvc
*
m_updMgrSvc
=
nullptr
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment