Skip to content
Snippets Groups Projects
Commit 6cf7c619 authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Fix unnamed lock in example code (mr !559)

backport of !487
parents 0fe7ba93 5932bf2f
No related branches found
No related tags found
2 merge requests!562StatusCode check fixes, master branch (2017.10.26.),!561Fixed use of zlib
......@@ -54,7 +54,7 @@ void IncidentAsyncTestSvc::handle( const Incident& incident )
}
} else if ( incident.type() == IncidentType::EndEvent ) {
{
std::unique_lock<decltype( m_eraseMutex )>( m_eraseMutex );
std::unique_lock<decltype( m_eraseMutex )> g( m_eraseMutex );
auto res = m_ctxData.unsafe_erase( incident.context() );
if ( res == 0 ) {
warning() << " Context is missing for '" << incident.type() << "' event=" << incident.context().evt() << endmsg;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment