[Live-devel] FAQ #13 - exiting doEventLoop()

Ross Finlayson finlayson at live555.com
Mon Oct 26 19:00:56 PDT 2009


>   I want to make return the doEventLoop() of a BasicTaskScheduler. I
>implemented the solution exposed in FAQ #13, it works and I could stay
>with it.
>
>My objection is for the need of a continuous run of the dummyTask(). Why
>could not it be invoked right after the watch variable setting? I made
>some tests but the thing does not work. What am I missing?

What you're missing is that the watch variable is set from a separate 
thread from the thread that runs the "LIVE555" event loop.  Because 
of this, you absolutely cannot call event loop functions from this 
separate thread; the only thing you can safely do is set the shared 
watch variable.
-- 

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


More information about the live-devel mailing list