summaryrefslogtreecommitdiff
path: root/linguistic/source/lngsvcmgr.cxx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2024-02-06 18:05:09 +0000
committerMichael Meeks <michael.meeks@collabora.com>2024-02-14 18:27:16 +0100
commit269a307da6bc4f8f4c759662703e20d4b6860f9a (patch)
tree2e8204022f6c36dab4bb49fdab748661024d9d6d /linguistic/source/lngsvcmgr.cxx
parent1d30e8bbb945c73aaf4114d927683990b3331dc8 (diff)
lok: implement a joinThreads function - to wind down thread pools. cp-24.04.0-1
Necessary to do this before forking on Unix systems; use a dynamic_cast interface since this is all for internal use. Change-Id: I8a911322acd4ec5654eb0d14804c09d513a0bd4b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163210 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'linguistic/source/lngsvcmgr.cxx')
-rw-r--r--linguistic/source/lngsvcmgr.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index 850d4d813bfd..11b5440da5d4 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -452,6 +452,14 @@ void LngSvcMgr::modified(const lang::EventObject&)
aUpdateIdle.Start();
}
+bool LngSvcMgr::joinThreads()
+{
+ if (mxGrammarDsp && !
+ mxGrammarDsp->joinThreads())
+ return false;
+ return true;
+}
+
//run update, and inform everyone that dictionaries (may) have changed, this
//needs to be run in the main thread because
//utl::ConfigChangeListener_Impl::changesOccurred grabs the SolarMutex and we