D11590: Add mutex round static member used in a thread
Anthony Fieroni
noreply at phabricator.kde.org
Fri Mar 23 05:15:11 UTC 2018
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 list is race condition. So function can return a copy to static list for this function, then global variables or mutexes doesn't needed.
REPOSITORY
R120 Plasma Workspace
REVISION DETAIL
https://phabricator.kde.org/D11590
To: davidedmundson, #plasma
Cc: anthonyfieroni, plasma-devel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180323/6b4867e2/attachment-0001.html>
More information about the Plasma-devel
mailing list