diff options
author | Michael Stahl <mstahl@redhat.com> | 2018-02-01 13:52:00 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-02-06 14:47:27 +0100 |
commit | 362b0c521c1c58dc8ea5e87ecbb482d5bdc073f4 (patch) | |
tree | 4601e5bd1b75b3b22f9a1f89f999f16cae552dc5 /officecfg | |
parent | d4a41817aa86fffaa3a27265966bc8265d34dd0a (diff) |
tdf#114815 pyuno: avoid 2 threads initing python in parallel
According to the crash reports, it's possible for the grammar checking
thread to call GetGrammarChecker, instantiating lightproof, at the same
time as the main thread instantiates LngSvcMgr, which also instantiates
(some?) (all?) grammar checkers.
Ensure that pyuno_loader::CreateInstance() initialises Python only
once with a C++11 thread safe static.
For the backport, use rtl::Static instead, because on the 5.4 branch
MSVC does not have HAVE_THREADSAFE_STATICS enabled.
Change-Id: I5b1faba9107355c508831a078366e4a29fdbfadf
(cherry picked from commit 5357ca82846ea7147ad61e9340f25647a5934eb0)
Reviewed-on: https://gerrit.libreoffice.org/49116
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'officecfg')
0 files changed, 0 insertions, 0 deletions