[Live-devel] Live 555 multi-thread support

Stas Oskin stas.oskin at gmail.com
Sun Jul 5 02:07:47 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 this
question<http://www.live555.com/liveMedia/faq.html#exiting-event-loop>.)


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?


Please note that I intend to use multi-core CPU's, so multi-threading is
quite important here.

Thanks for any information!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090705/90899c60/attachment.html>


More information about the live-devel mailing list