diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2024-05-18 22:08:22 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2024-07-26 13:37:26 +0200 |
commit | f9df8d71a9d4ad2e7bc2e221551d9ee007f9fc60 (patch) | |
tree | 943172c401e9f870940be6cf47d4a00e7ef50371 /include/comphelper | |
parent | dbfa56584cac08cae733513c13803a9c6ece22f6 (diff) |
lok: join Webdav Ticker thread.
Add 'startThreads' lok method for the few thread scenarios where
we need to have a background thread running that cannot be started
opportunistically.
Also add that to the ThreadJoinable interface so we can get into
UNO components' implementations to handle their worker threads
easily.
Implement joining and re-starting in WebDAV ucp too.
Change-Id: I329ef9decb32b263197e4c03a0d54952985fdd0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167858
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170979
Tested-by: Jenkins
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/lok.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/comphelper/lok.hxx b/include/comphelper/lok.hxx index 555b749fa6a1..f998c12dedc3 100644 --- a/include/comphelper/lok.hxx +++ b/include/comphelper/lok.hxx @@ -26,6 +26,8 @@ class COMPHELPER_DLLPUBLIC SAL_LOPLUGIN_ANNOTATE("crosscast") ThreadJoinable public: /// shutdown and join threads, @returns true on success virtual bool joinThreads() = 0; + /// restart any required threads, usually are demand-restarted + virtual void startThreads() {} }; // Functions to be called only from the LibreOfficeKit implementation in desktop, not from other |