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.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-11-30 20:50:39 +00:00
parent ad338cae4e
commit f82818ad04

View file

@ -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;