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:
parent
ad338cae4e
commit
f82818ad04
1 changed files with 2 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
||||||
#include <osl/conditn.hxx>
|
#include <osl/conditn.hxx>
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <atomic>
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <set>
|
#include <set>
|
||||||
|
@ -51,7 +52,7 @@ public:
|
||||||
TimeValue maDueTime;
|
TimeValue maDueTime;
|
||||||
const sal_Int64 mnRepeatInterval;
|
const sal_Int64 mnRepeatInterval;
|
||||||
const sal_Int32 mnTaskId;
|
const sal_Int32 mnTaskId;
|
||||||
bool mbIsCanceled;
|
std::atomic<bool> mbIsCanceled;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef std::shared_ptr<TimerTask> SharedTimerTask;
|
typedef std::shared_ptr<TimerTask> SharedTimerTask;
|
||||||
|
|
Loading…
Reference in a new issue