summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorjan Iversen <jani@libreoffice.org>2018-02-28 13:06:02 +0100
committerjan Iversen <jani@libreoffice.org>2018-02-28 17:31:45 +0100
commit9c8cc8e46c917042ca85d392f175b320205c0f7e (patch)
tree6ad70fd4e0dbd7ab7c104c59721d75dbc11d4a93 /vcl/headless
parent02f6bb884e42e83171a0a04917ecca6da905965b (diff)
iOS, removed read to pipes
needed to run iOS Change-Id: I1176ce24023cde21846c71ffadb1bf01cb2c8399
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpinst.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx
index 096dcb252a3c..61fc93883f6a 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -327,7 +327,11 @@ void SvpSalYieldMutex::doAcquire(sal_uInt32 const nLockCount)
m_bNoYieldLock = true;
bool const bEvents = pInst->DoYield(false, request == SvpRequest::MainThreadDispatchAllEvents);
m_bNoYieldLock = false;
+#ifdef IOS
+ (void)bEvents;
+#else
write(m_FeedbackFDs[1], &bEvents, sizeof(bool));
+#endif
}
}
while (true);
@@ -454,10 +458,11 @@ bool SvpSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents)
: SvpRequest::MainThreadDispatchOneEvent);
bool bDidWork(false);
+#ifndef IOS
// blocking read (for synchronisation)
auto const nRet = read(pMutex->m_FeedbackFDs[0], &bDidWork, sizeof(bool));
assert(nRet == 1); (void) nRet;
-
+#endif
if (!bDidWork && bWait)
{
// block & release YieldMutex until the main thread does something