Skip to content
Snippets Groups Projects
Commit cfbb6e76 authored by Russell Taylor's avatar Russell Taylor
Browse files

Merge remote branch 'origin/bugfix/9657_beam_monitor_race'

parents c87ea1b6 5f75f917
No related merge requests found
......@@ -464,6 +464,10 @@ namespace LiveData
return false;
}
// We'll likely be modifying m_eventBuffer (specifically, m_eventBuffer->m_monitorWorkspace),
// so lock the mutex
Poco::ScopedLock<Poco::FastMutex> scopedLock(m_mutex);
auto monitorBuffer =
boost::static_pointer_cast<DataObjects::EventWorkspace>(m_eventBuffer->monitorWorkspace());
const auto pktTime = timeFromPacket(pkt);
......@@ -488,8 +492,6 @@ namespace LiveData
// Note: The monitor name must exactly match one of the entries in the ADDABLE
// list at the top of Run.cpp!
Poco::ScopedLock<Poco::FastMutex> scopedLock(m_mutex);
int events = pkt.getSectionEventCount();
if (m_eventBuffer->run().hasProperty(monName))
{
......
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