Kaydet (Commit) ad2c68fb authored tarafından Andrzej Hunt's avatar Andrzej Hunt Kaydeden (comit) Tomaž Vajngerl

Add OfficeIPCThread::WaitForReady.

For LibreOfficeKit we need to start up the event loop, and can't continue
initialisation until all the related (VCL etc.) setup is complete -- the
OfficeIPCThread is also enabled as one of the last items, and can be
used to indicate whether or not we can start actually working with VCL.

Change-Id: I0450b65584ddf6e8d02ce0c6e66e06f47841d1b7
üst 13fced38
......@@ -670,6 +670,18 @@ void OfficeIPCThread::SetReady(
}
}
void OfficeIPCThread::WaitForReady(
rtl::Reference< OfficeIPCThread > const & pThread)
{
rtl::Reference< OfficeIPCThread > const & t(
pThread.is() ? pThread : pGlobalOfficeIPCThread);
if (t.is())
{
t->cReady.wait();
}
}
void OfficeIPCThread::execute()
{
#if HAVE_FEATURE_DESKTOP
......
......@@ -126,6 +126,9 @@ class OfficeIPCThread : public salhelper::Thread
static void SetReady(
rtl::Reference< OfficeIPCThread > const & pThread =
rtl::Reference< OfficeIPCThread >());
static void WaitForReady(
rtl::Reference< OfficeIPCThread > const & pThread =
rtl::Reference< OfficeIPCThread >());
bool AreRequestsEnabled() const { return mbRequestsEnabled && ! mbDowning; }
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment