summaryrefslogtreecommitdiff
path: root/vcl/headless
diff options
context:
space:
mode:
authorJan-Marek Glogowski <glogow@fbihome.de>2016-09-08 06:55:30 +0200
committerJan-Marek Glogowski <glogow@fbihome.de>2017-07-13 12:10:21 +0200
commitd348035a60361a1b9ba9eb7b67013204a24a6633 (patch)
tree85e7e4ff2dd926ef9d2907b4f4900815bdbb96c5 /vcl/headless
parent1782893282a4543e946e6b2c8de863b10fab0c85 (diff)
Drop special idle handling
Idles are just instant timers, which should most time have a low priority, By dropping most special idle handling we'll just schedule by priority. This also reverts SalYieldResult back to a bool, which just indicates if any event was processed. Change-Id: Ia0b91b06dffb77af066f01838d8f9483523bf67d
Diffstat (limited to 'vcl/headless')
-rw-r--r--vcl/headless/svpinst.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/vcl/headless/svpinst.cxx b/vcl/headless/svpinst.cxx
index a5a96fd41e52..2e803decccd3 100644
--- a/vcl/headless/svpinst.cxx
+++ b/vcl/headless/svpinst.cxx
@@ -239,10 +239,7 @@ bool SvpSalInstance::CheckTimeout( bool bExecuteTimers )
// notify
ImplSVData* pSVData = ImplGetSVData();
if( pSVData->maSchedCtx.mpSalTimer )
- {
- bool idle = true; // TODO
- pSVData->maSchedCtx.mpSalTimer->CallCallback( idle );
- }
+ pSVData->maSchedCtx.mpSalTimer->CallCallback();
}
}
}
@@ -307,7 +304,7 @@ SalBitmap* SvpSalInstance::CreateSalBitmap()
#endif
}
-SalYieldResult SvpSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLong const nReleased)
+bool SvpSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents, sal_uLong const nReleased)
{
(void) nReleased;
assert(nReleased == 0); // not implemented
@@ -374,8 +371,7 @@ SalYieldResult SvpSalInstance::DoYield(bool bWait, bool bHandleAllCurrentEvents,
DoReleaseYield(nTimeoutMS);
}
- return bEvent ? SalYieldResult::EVENT :
- SalYieldResult::TIMEOUT;
+ return bEvent;
}
void SvpSalInstance::DoReleaseYield( int nTimeoutMS )