[Live-devel] Please help: I have difficulties implementing the right classes

Ross Finlayson finlayson at live555.com
Fri Sep 5 12:37:11 PDT 2014


> One last question: Let's assume fDurationInMicroseconds is 0; if the transmitting object immediately requests the next frame and doGetNextFrame() returns immediately because no frame is available, isn't there a risk that the application will use 100% of CPU?

No, because after returning from "doGetNextFrame()", the code will then re-enter the event loop.  It will then block (i.e., consuming no CPU) until a new event occurs (such as the arrival of a new frame).

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/20140905/e360e5b9/attachment.html>


More information about the live-devel mailing list