[Live-devel] Live 555 multi-thread support
Ross Finlayson
finlayson at live555.com
Sun Jul 5 02:58:10 PDT 2009
>Hi.
>
>I read the FAQ but I still not 100% sure about this:
>
>"
>
>Longer answer: More than one thread can still use this code, if only
>one thread runs the library code proper, and the other thread(s)
>communicate with the library only by setting global 'flag'
>variables. (For one possible use of this technique, see the answer
>to
><http://www.live555.com/liveMedia/faq.html#exiting-event-loop>this
>question.)
>
>Another possible way to access the code from multiple threads is to
>have each thread use its own "UsageEnvironment" and "TaskScheduler"
>objects, and thus its own event loop. The objects created by each
>thread (i.e., using its own "UsageEnvironment") must not interact
>(except via global variables).
>
>"
>
>Is there any good guide-lines to run the Live555 (or OpenRTSP
>example) in multi-threaded fashion?
>
>Or my best bet would be to run separate processes?
Yes, that's the best way - use multiple processes if you can.
--
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/20090705/d33724ba/attachment.html>
More information about the live-devel
mailing list