[Live-devel] Do the test applications ever sleep?
Sid Price
sidprice at softtools.com
Fri Aug 17 14:41:50 PDT 2012
Aha! Thanks Ross that is clear.
My application does not require any external stimuli to cause actions within
the server. It has no UI. If external stimuli were needed I would hope to be
able to subclass "BasicUsageEnvironment" to achieve this without the need
for periodic running of the task scheduler, but at this point I don't see a
need for that.
I will be doing some more testing on this with this new knowledge in mind.
Many thanks for valuable help,
Sid.
From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: Friday, August 17, 2012 12:52 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Do the test applications ever sleep?
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/da00344e/attachment.html>
More information about the live-devel
mailing list