From 167a9b8caf40a95c736be1d360bc4ef55052a39e Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 28 Oct 2024 21:24:42 +0000 Subject: cid#1607341 silence Data race condition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Caolán McNamara --- sc/source/ui/docshell/datastream.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 oLines; - std::unique_lock aGuard(maMtxLines); + std::unique_lock aGuard(getLinesMutex()); if (!maUsedLines.empty()) { -- cgit