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

Ross Finlayson finlayson at live555.com
Fri Aug 17 11:51:51 PDT 2012


> When I comment out the line you suggested the CPU utilization by the process does indeed go to 0%.
>  
> Before you make changes I would like to know more about the use of your event triggers so that I can understand if I do need them or not. So, if you could spare a few minutes describing them I would much appreciate it.

Event triggers are described in "UsageEnvironment/include/UsageEnvironment.hh".  They provide a way for an external thread (i.e., outside the LIVE555 event loop) to signal an event that the LIVE555 event loop thread can handle.  That's why the LIVE555 event loop has to wake up on occasion - to check whether an external thread has triggered an event (using an 'event trigger).

So the question here is: Will you server ever be signaled by an external thread - e.g., by a GUI?  If not, then you won't need event triggers.


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/20120817/c892d3d1/attachment.html>


More information about the live-devel mailing list