[Live-devel] Do the test applications ever sleep?

Ross Finlayson finlayson at live555.com
Thu Aug 16 14:43:55 PDT 2012


> Since there is nothing else in the “doEventLoop” I terms of calls I have to assume the 10mS you mentioned should be the execution time of the “SingleStep” method.

That's correct.  If the server really is doing nothing, and there is nothing happening on any on any of its sockets, then "SingleStep()" - specifically, the call to "select()" at line 80 of "BasicTaskScheduler.cpp" - should take about 10ms on average.  (The reason for this is that there will be no activity on any of the sockets specified by "readSet", "writeSet", "exceptionSet", but "tv_timeToDelay" will be 10 ms (on average).)

If, however, you find that the call to "select()" is consistently taking much less than 10ms on your system, then you'll have to figure out what's going wrong.  (For starters, I suggest looking at the value of "selectResult" returned by the "select()" call; that should tell you why "select()" is returning early.)

Remember, You Have Complete Source Code.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120816/bbba5252/attachment.html>


More information about the live-devel mailing list