[Live-devel] About the tv_timeToDelay param in the select() function

Ross Finlayson finlayson at live555.com
Sun Dec 28 20:33:22 PST 2008


>I have another question about the tv_timeToDelay param in the 
>select() function, in BasicTaskScheduler class.
>
>By default, I notified the timeout value is 0

No, that's not true.  By default, the 'timeout' parameter to the 
"select()" call will be the time until the next 'delayed task' comes 
due.  Note the statement:
	DelayInterval const& timeToDelay = fDelayQueue.timeToNextAlarm();

If your current "select()" function is broken, then you will either 
need to fix it (so that it has the standard semantics expected for 
the "select()" function), or else write a new event loop - i.e., your 
own subclass ot "TaskScheduler", and use that instead of 
"BasicTaskScheduler".
-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list