diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-10-28 21:24:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-10-29 22:07:59 +0100 |
commit | 167a9b8caf40a95c736be1d360bc4ef55052a39e (patch) | |
tree | 893a7110eb573ff177c5502ee563cdfc852b70ea /sc/source/ui/docshell | |
parent | 6668f6e34860b7f42a1ee06a062496a0cb63ce8e (diff) |
cid#1607341 silence Data race condition
clarify that the same mutex is held for writing and reading to
maUsedLines
Change-Id: Ifabe8006cc1eac3cf05e9d5c4e907e79f22c3de7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175802
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/datastream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/docshell/datastream.cxx b/sc/source/ui/docshell/datastream.cxx index 6d28fff40fdc..521dd930e484 100644 --- a/sc/source/ui/docshell/datastream.cxx +++ b/sc/source/ui/docshell/datastream.cxx @@ -176,7 +176,7 @@ private: while (!isTerminateRequested()) { std::optional<DataStream::LinesType> oLines; - std::unique_lock aGuard(maMtxLines); + std::unique_lock aGuard(getLinesMutex()); if (!maUsedLines.empty()) { |