vcl: use WT_EXECUTEINTIMERTHREAD for Timer Queue

Currently the timer callback is running on a separate thread, but that
is unnecessary since it just does a PostMessage().

Every thread stack stack mysteriously eats 10M of VM apparently despite
dumpbin -headers soffice.bin:
"989680 size of stack reserve, 1000 size of stack commit"

Change-Id: I6eac3f6fa45939cd5dbb3dfbec61f9a504bdaa8b
This commit is contained in:
Michael Stahl 2014-09-29 17:25:54 +02:00
parent 0597f3bb6b
commit 09196ca6ca

View file

@ -58,7 +58,7 @@ void ImplSalStartTimer( sal_uLong nMS, bool bMutex )
if (pSalData->mnTimerId)
ChangeTimerQueueTimer(NULL, pSalData->mnTimerId, nMS, nMS);
else
CreateTimerQueueTimer(&pSalData->mnTimerId, NULL, SalTimerProc, NULL, nMS, nMS, WT_EXECUTEDEFAULT);
CreateTimerQueueTimer(&pSalData->mnTimerId, NULL, SalTimerProc, NULL, nMS, nMS, WT_EXECUTEINTIMERTHREAD);
pSalData->mnNextTimerTime = pSalData->mnLastEventTime + nMS;
}