[Live-devel] select() timeout parameter insideBasicTaskScheduler::SingleStep()

Ross Finlayson finlayson at live.com
Tue Dec 7 06:19:59 PST 2004


>If there is are no pending task, shouldn't it be a returned null delay
>instead of more than 1 million of seconds ?

The "DelayQueue" class is implemented as a priority queue in such a way 
that there's a permanent entry ('task') at the end of the queue that will 
come due at the maximum possible time.  This simplifies the implementation, 
and means that there will always be some time to delay (perhaps a very 
large time).  See "BasicUsageEnvironment/DelayQueue.cpp".


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list