diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-08-29 09:40:01 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2017-09-27 10:26:41 +0200 |
commit | ce8bbb782b806e429ffb44226162967bed244d94 (patch) | |
tree | 0b32d6ee6b57eedb21fde70376c2d2af84d9544e /vcl/inc/osx | |
parent | 79a425900e31bda83cde1bee150c1234931cb8bd (diff) |
Don't wait-yield non-main threads in the main thread
This prevents blocking the main thread by a yielding non-main thread.
The current solution is to wait on a condition, which is set by the
main thread on wakeup.
Change-Id: I8d680bb51a36ce1e0d3d4713d47d8e2ef93d7297
Reviewed-on: https://gerrit.libreoffice.org/42808
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc/osx')
-rw-r--r-- | vcl/inc/osx/salinst.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/osx/salinst.h b/vcl/inc/osx/salinst.h index 65db0d0b0f2a..0e30dfafb693 100644 --- a/vcl/inc/osx/salinst.h +++ b/vcl/inc/osx/salinst.h @@ -72,6 +72,8 @@ class AquaSalInstance : public SalInstance {} }; + bool RunInMainYield( bool bHandleAllCurrentEvents ); + public: SalYieldMutex* mpSalYieldMutex; // Sal-Yield-Mutex OUString maDefaultPrinter; |