diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-18 13:10:14 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-12-04 12:23:00 +0100 |
commit | d5b01426f3f8b80e93ff5dec6c159624f51c8dcb (patch) | |
tree | ea51c88f3e3c23c39a7e6071e8676a7ce3f54da9 /desktop | |
parent | 5ffdcea247f64e36f56cfbfa3ba2bde0777945d6 (diff) |
Add OfficeIPCThread::IsEnabled.
This lets us easily check whether Desktop::Main has shut down,
i.e. which happens on the first restart-requiring initialisation.
Change-Id: I7fe5699a4bf59e2c3b891ac73abd9b147773d22e
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/officeipcthread.cxx | 5 | ||||
-rw-r--r-- | desktop/source/app/officeipcthread.hxx | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx index 1789fbdd1f7e..df00bdb33ccd 100644 --- a/desktop/source/app/officeipcthread.cxx +++ b/desktop/source/app/officeipcthread.cxx @@ -682,6 +682,11 @@ void OfficeIPCThread::WaitForReady( } } +bool OfficeIPCThread::IsEnabled() +{ + return pGlobalOfficeIPCThread.is(); +} + void OfficeIPCThread::execute() { #if HAVE_FEATURE_DESKTOP diff --git a/desktop/source/app/officeipcthread.hxx b/desktop/source/app/officeipcthread.hxx index 9b3f1fd705da..a6b48c1925c6 100644 --- a/desktop/source/app/officeipcthread.hxx +++ b/desktop/source/app/officeipcthread.hxx @@ -129,6 +129,7 @@ class OfficeIPCThread : public salhelper::Thread static void WaitForReady( rtl::Reference< OfficeIPCThread > const & pThread = rtl::Reference< OfficeIPCThread >()); + static bool IsEnabled(); bool AreRequestsEnabled() const { return mbRequestsEnabled && ! mbDowning; } }; |