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:17:06 +0100 |
commit | ed8a8c9a6ed377aaed3d62e17653a65e93eb3cc6 (patch) | |
tree | 31b9ee31b353800f7d6eb41efb67d1141db10f7d /i18npool | |
parent | 0ca6361e138d21b7151f926609d497afb47e6966 (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.
Change-Id: I5b1faba9107355c508831a078366e4a29fdbfadf
(cherry picked from commit 5357ca82846ea7147ad61e9340f25647a5934eb0)
Reviewed-on: https://gerrit.libreoffice.org/49115
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18npool')
0 files changed, 0 insertions, 0 deletions