summaryrefslogtreecommitdiff
path: root/linguistic/source/lngsvcmgr.hxx
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.hxx
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.hxx')
-rw-r--r--linguistic/source/lngsvcmgr.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/linguistic/source/lngsvcmgr.hxx b/linguistic/source/lngsvcmgr.hxx
index f21dc70a1b8c..fcec04f37237 100644
--- a/linguistic/source/lngsvcmgr.hxx
+++ b/linguistic/source/lngsvcmgr.hxx
@@ -22,6 +22,7 @@
#include <cppuhelper/implbase.hxx>
#include <comphelper/interfacecontainer3.hxx>
+#include <comphelper/lok.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -58,7 +59,8 @@ class LngSvcMgr :
css::lang::XServiceInfo,
css::util::XModifyListener
>,
- private utl::ConfigItem
+ private utl::ConfigItem,
+ public comphelper::LibreOfficeKit::ThreadJoinable
{
friend class LngSvcMgrListenerHelper;
@@ -156,6 +158,9 @@ public:
// XModifyListener
virtual void SAL_CALL modified( const css::lang::EventObject& rEvent ) override;
+ // comphelper::LibreOfficeKit::ThreadJoinable
+ virtual bool joinThreads() override;
+
bool AddLngSvcEvtBroadcaster(
const css::uno::Reference< css::linguistic2::XLinguServiceEventBroadcaster > &rxBroadcaster );
};