This revision was automatically updated to reflect the committed changes.
Closed by commit R120:52ceb2454be4: Add mutex round static member used in a
thread (authored by davidedmundson).
REPOSITORY
R120 Plasma Workspace
CHANGES SINCE LAST UPDATE
https://phabricator.kde.org/D11590?vs=30298&id
davidedmundson updated this revision to Diff 30298.
davidedmundson added a comment.
shallow-copy QStringList outside mutex
REPOSITORY
R120 Plasma Workspace
CHANGES SINCE LAST UPDATE
https://phabricator.kde.org/D11590?vs=30264&id=30298
BRANCH
master
REVISION DETAIL
https://phabricato
davidedmundson added a comment.
Very well spotted!
In this specific case it's probably fine as it's never modified after
construction, but I'll change anyway.
REPOSITORY
R120 Plasma Workspace
REVISION DETAIL
https://phabricator.kde.org/D11590
To: davidedmundson, #plasma
Cc: anthony
anthonyfieroni added inline comments.
INLINE COMMENTS
> backgroundlistmodel.cpp:532
>
> -m_suffixes = suffixes.toList();
> +s_suffixes = suffixes.toList();
> }
Potentially it still can produce a crash, the function returns a reference to
list, simultaneously read/write on
davidedmundson created this revision.
davidedmundson added a reviewer: Plasma.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.
davidedmundson requested review of this revision.
REVISION SUMMARY
BackgroundFinder runs in a separate thread, i