diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-12-14 22:02:25 +0000 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-12-23 21:17:00 +0100 |
commit | 1d4da92f7ce8026a5433822d9b8f5728a308bb75 (patch) | |
tree | 5bc2870e6ef3c9f0216bba51dd97e720d2a3043a /ucb/source | |
parent | 42e7722ddf80937fc969a70c0e6f55f55085876a (diff) |
cid#1607743 Data race condition
Change-Id: Ic7f4744fdb1cf43f6bcf6c66752f37be25c06cb6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178494
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/sorter/sortresult.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ucb/source/sorter/sortresult.cxx b/ucb/source/sorter/sortresult.cxx index fbcf846f0ac1..e8019e3e5cb1 100644 --- a/ucb/source/sorter/sortresult.cxx +++ b/ucb/source/sorter/sortresult.cxx @@ -1169,6 +1169,9 @@ void SortedResultSet::PropertyChangedImpl(std::unique_lock<std::mutex>& rGuard, void SortedResultSet::CopyData( SortedResultSet *pSource ) { + std::unique_lock aGuard(maMutex); + std::unique_lock aSrcGuard(pSource->maMutex); + const SortedEntryList& rSrcS2O = pSource->maS2O; sal_IntPtr i, nCount; |