summaryrefslogtreecommitdiff
path: root/toolkit/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-06-21 14:04:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-06-21 16:45:21 +0200
commit60e8446323e03d097b7272f37c3b9e92a66a7cbc (patch)
tree8ff0c82eab57eb818f7e506e2ac0993975be9004 /toolkit/source
parentb00183ebb29d19cb59145a3d240554f8e3573a0b (diff)
tsan: fix data race in VCLXWindowImpl
Change-Id: I68894dabdaa22ac3733d08ae85df5c82e3b9654c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169333 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit/source')
-rw-r--r--toolkit/source/awt/vclxwindow.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/toolkit/source/awt/vclxwindow.cxx b/toolkit/source/awt/vclxwindow.cxx
index 7d531719ea9b..c5cfc9ec7553 100644
--- a/toolkit/source/awt/vclxwindow.cxx
+++ b/toolkit/source/awt/vclxwindow.cxx
@@ -62,6 +62,7 @@
#include <helper/accessibilityclient.hxx>
#include <helper/unopropertyarrayhelper.hxx>
+#include <atomic>
using namespace ::com::sun::star;
@@ -118,7 +119,7 @@ public:
bool mbSynthesizingVCLEvent : 1;
bool mbWithDefaultProps : 1;
- sal_uLong mnListenerLockLevel;
+ std::atomic<int> mnListenerLockLevel;
sal_Int16 mnWritingMode;
sal_Int16 mnContextWritingMode;