[Live-devel] doEventLoop watch variable

Ross Finlayson finlayson at live555.com
Wed Mar 14 06:14:53 PDT 2007


>I want to implement stream switching in my RTSP client. So after I start
>streaming by doEventLoop(watch), I understand I can interrupt the loop
>by setting *watch=1.
>
>My idea is to use a separate control thread to watch for keyboard
>inputs, which will set the watch variable. If the event loop is
>interrupted streams will be switched and another doEventLoop(watch) to
>keep streaming.
>
>My question is how are the scheduled tasks affected when the event loop
>is interrupted. Are they unscheduled or do they continue unaffected
>after the loop resumes?

The latter.  Any pending tasks remain in the scheduler until they are 
handled (or removed).

-- 

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


More information about the live-devel mailing list