diff options
author | Michael Stahl <mstahl@redhat.com> | 2017-11-29 15:18:12 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-11-30 09:41:42 +0100 |
commit | fa9c083c6071a0a4dc812f3c34731f347ddbabf7 (patch) | |
tree | 9a9e8ce35ae67ec7c110f58cd3335932c740e9f5 /lo.xcent.in | |
parent | b14436817b1c49a9b3043635dbc754a8aa7cca83 (diff) |
tdf#114025 framework: avoid deadlock between Desktop init ...
... and SolarMutex: the problem is that rtl::StaticWithArg will
first lock the implicit mutex of the C++11 static variable, and
then the SolarMutex.
So if one thread creates the Desktop singleton with SolarMutex
locked and another thread without SolarMutex locked, this can
deadlock.
If we use rtl_Instance directly with SolarMutex, then there is
still a static variable, but the SolarMutex will always be locked
first, preventing this deadlock.
Change-Id: Ibd37fdfa96a4a2b57f661be3814dd597eb52d338
Reviewed-on: https://gerrit.libreoffice.org/45508
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'lo.xcent.in')
0 files changed, 0 insertions, 0 deletions