diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2019-12-11 14:38:43 +0000 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2019-12-11 18:06:33 +0100 |
commit | 7241382ccc0a028c5f08304090a6344e582db068 (patch) | |
tree | 28b80b9622bc756b685a28346bd7b9e3b93b9d10 /vcl/inc/salinst.hxx | |
parent | 23c8830da611d14dbffc2022efac28203352f6b9 (diff) |
android: add abstraction to allow us to DetachThread sensibly.
If we fail to do this after runLoop - some Android VMs can get really
upset if we quit a thread without doing this, also ensure that we
AttachThread to new polling loop threads as we come in for good
measure - duplicate Attach's are NOPs.
Change-Id: I32454773af4e02c97df0b6c02f61b1dc74df80b0
Reviewed-on: https://gerrit.libreoffice.org/84956
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'vcl/inc/salinst.hxx')
-rw-r--r-- | vcl/inc/salinst.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/inc/salinst.hxx b/vcl/inc/salinst.hxx index e35cd78df4fb..6ad6133f6129 100644 --- a/vcl/inc/salinst.hxx +++ b/vcl/inc/salinst.hxx @@ -195,7 +195,10 @@ public: virtual void jobStartedPrinterUpdate() {} virtual void jobEndedPrinterUpdate() {} + /// Set the app's (somewhat) magic/main-thread to this one. virtual void updateMainThread() {} + /// Disconnect that - good for detatching from the JavaVM on Android. + virtual void releaseMainThread() {} /// get information about underlying versions virtual OUString getOSVersion() { return OUString("-"); } |