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

Fix unnamed lock in example code (mr !487)

Unnamed lockguards don't actually lock and don't produce
warnings.
parents cb5ebd89 e899da79
No related branches found
No related tags found
No related merge requests found
......@@ -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