Lines Matching defs:maxTime
78 unsigned long maxTime, bool checkDelimiter, byte delimiter)
84 size_t ret = DoPump(byteCount, blockingOutput, maxTime, checkDelimiter, delimiter);
89 bool forever = (maxTime == INFINITE_TIME);
90 unsigned long timeToGo = maxTime;
103 if (!forever) timeToGo = SaturatingSubtract(maxTime, timer.ElapsedTime());
120 timeToGo = SaturatingSubtract(maxTime, timer.ElapsedTime());
162 lword NonblockingSink::TimedFlush(unsigned long maxTime, size_t targetSize)
171 return DoFlush(maxTime, targetSize);
173 bool forever = (maxTime == INFINITE_TIME);
174 unsigned long timeToGo = maxTime;
185 if (!forever) timeToGo = SaturatingSubtract(maxTime, timer.ElapsedTime());
200 timeToGo = SaturatingSubtract(maxTime, timer.ElapsedTime());
257 size_t NetworkSource::DoPump(lword &byteCount, bool blockingOutput, unsigned long maxTime, bool checkDelimiter, byte delimiter)
263 bool forever = maxTime == INFINITE_TIME;
280 !receiver.Wait(SaturatingSubtract(maxTime, timer.ElapsedTime()),
300 if (!receiver.Wait(SaturatingSubtract(maxTime, timer.ElapsedTime()),
343 if (t->Wait(SaturatingSubtract(maxTime, timer.ElapsedTime()),
363 if (maxTime > 0 && timer.ElapsedTime() > maxTime)
474 lword NetworkSink::DoFlush(unsigned long maxTime, size_t targetSize)
478 bool forever = maxTime == INFINITE_TIME;
490 !sender.Wait(SaturatingSubtract(maxTime, timer.ElapsedTime()),
506 unsigned long timeOut = maxTime ? SaturatingSubtract(maxTime, timer.ElapsedTime()) : 0;
519 if (maxTime > 0 && timeOut == 0)
536 unsigned long timeOut = maxTime ? SaturatingSubtract(maxTime, timer.ElapsedTime()) : 0;