[Live-devel] TaskScheduler and doEventsLoop

Ross Finlayson finlayson at live555.com
Thu Nov 2 10:43:43 PST 2006


>Hey Guys,
>
>I just wanted to confirm something. Does the doEventsLoop need to be
>called repeatedly to eventually trigger a scheduled function ?

No, "doEventLoop()" - by default - does not return, and therefore 
needs to be called exactly once - after you've run your code that 
sets up events to be handled (e.g., by calling 
"RTPSink::startPlaying(), "TaskScheduler::scheduleDelayedTask()", 
etc.).  (See the various demo applications for examples of this.)

Note, however, that if you use "TaskScheduler::scheduleDelayedTask()" 
to set up a task to be performed later, then this task will end up 
getting once only.  If you want the task to be performed 
periodically, then you need to call 
"TaskScheduler::scheduleDelayedTask()" again, at the end of the task 
function.
-- 

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


More information about the live-devel mailing list