sd/source/console/PresenterTimer.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit f82818ad04717ed28338d0eb2bdc55c1942b1bf7
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat Nov 30 20:50:39 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sun Dec 1 17:12:42 2024 +0100

    cid#1557419 Data race condition
    
    and
    
    cid#1557189 Data race condition
    
    Change-Id: I6ee6dd60d7b0eccca3042ad5ff7846f77f16feec
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177610
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sd/source/console/PresenterTimer.cxx 
b/sd/source/console/PresenterTimer.cxx
index d48c0d608bb3..a0fe450bd504 100644
--- a/sd/source/console/PresenterTimer.cxx
+++ b/sd/source/console/PresenterTimer.cxx
@@ -27,6 +27,7 @@
 #include <osl/conditn.hxx>
 
 #include <algorithm>
+#include <atomic>
 #include <memory>
 #include <mutex>
 #include <set>
@@ -51,7 +52,7 @@ public:
     TimeValue maDueTime;
     const sal_Int64 mnRepeatInterval;
     const sal_Int32 mnTaskId;
-    bool mbIsCanceled;
+    std::atomic<bool> mbIsCanceled;
 };
 
 typedef std::shared_ptr<TimerTask> SharedTimerTask;

Reply via email to