cid#1607688 Check of thread-shared field evades lock acquisition

Change-Id: I89042693b8844b4769be79fa854722fe3d7babf6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177426
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-11-25 17:22:50 +00:00
parent c251a8cfe6
commit 88431fff42

View file

@ -205,7 +205,7 @@ namespace framework
std::mutex m_aListenerMutex; std::mutex m_aListenerMutex;
std::mutex m_aQueueMutex; std::mutex m_aQueueMutex;
bool m_bAPIActionRunning; bool m_bAPIActionRunning;
bool m_bProcessingEvents; std::atomic<bool> m_bProcessingEvents;
sal_Int32 m_nLockCount; sal_Int32 m_nLockCount;
::comphelper::OInterfaceContainerHelper4<XUndoManagerListener> m_aUndoListeners; ::comphelper::OInterfaceContainerHelper4<XUndoManagerListener> m_aUndoListeners;
::comphelper::OInterfaceContainerHelper4<XModifyListener> m_aModifyListeners; ::comphelper::OInterfaceContainerHelper4<XModifyListener> m_aModifyListeners;