toolkit/source/awt/vclxwindow.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 60e8446323e03d097b7272f37c3b9e92a66a7cbc Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Jun 21 14:04:20 2024 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Jun 21 16:45:21 2024 +0200 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.gran...@collabora.co.uk> 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;