diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-08-16 15:02:15 +0200 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-08-18 15:10:00 +0200 |
commit | 50cd19debbd3f94df0fc4b370f6f6e69d4a1e085 (patch) | |
tree | 8da269eb47af6f3f8bcbbc3eee9526b2e2dbef6b /offapi | |
parent | 38b9d5e86dcab74288163bb8c6ad798e93e3bedf (diff) |
Emscripten: Clean up SolarMutex
...before disappearing through the QApplication::exec() hole, or else the
SolarMutex would remain locked forever on the application's main thread.
This requires changing SalInstance::ReleaseYieldMutexAll() to
SalInstance::ReleaseYieldMutex(bool all). (Further recursive locking of the
SolarMutex via SolarMutexGuard instances that would be present on the call stack
leading up to the call to QApplication::exec() would be released during the
stack unwinding, so just undo the one acquiring done in InitVCL, not all of
them.)
Change-Id: I9ef57abb7da7f840999700e4eaeeefd2da784645
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171956
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/org/libreoffice/embindtest/XTest.idl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/offapi/org/libreoffice/embindtest/XTest.idl b/offapi/org/libreoffice/embindtest/XTest.idl index 8d46c9e71d5a..276ce260a8e1 100644 --- a/offapi/org/libreoffice/embindtest/XTest.idl +++ b/offapi/org/libreoffice/embindtest/XTest.idl @@ -133,6 +133,7 @@ interface XTest { void passInterface([in] com::sun::star::uno::XInterface object); boolean checkAttributes([in] org::libreoffice::embindtest::XAttributes object); [attribute] string StringAttribute; + boolean testSolarMutex(); }; }; }; }; |