while (lastXTS >= minUsefulXTS && waitTime < maxWaitTime)
{
SOS_WaitInfo wi (PWAIT_SLEEP_TASK, PERMANENT_WAIT);
SleepAndCheckForAbort (SHRINK_CHECK_XTS_INTERVAL, abortState, &wi);
waitTime += SHRINK_CHECK_XTS_INTERVAL;
minUsefulXTS = GetXVM ()->GetMinUsefulXTS ();
} // while