<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [Live-devel] Live 555 multi-thread
support</title></head><body>
<blockquote type="cite" cite>Hi.<br>
<br>
I read the FAQ but I still not 100% sure about this:<br>
<br>
&quot;<br>
</blockquote>
<blockquote type="cite" cite><i>Longer answer:</i> 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 <a
href="http://www.live555.com/liveMedia/faq.html#exiting-event-loop"
>this question</a>.)<br>
</blockquote>
<blockquote type="cite" cite>Another possible way to access the code
from multiple threads is to have each thread use its own
&quot;UsageEnvironment&quot; and &quot;TaskScheduler&quot; objects,
and thus its own event loop. The objects created by each thread (i.e.,
using its own &quot;UsageEnvironment&quot;) must not interact (except
via global variables).<br>
</blockquote>
<blockquote type="cite" cite>&quot;<br>
<br>
Is there any good guide-lines to run the Live555 (or OpenRTSP example)
in multi-threaded fashion?<br>
</blockquote>
<blockquote type="cite" cite>Or my best bet would be to run separate
processes?</blockquote>
<div><br></div>
<div>Yes, that's the best way - use multiple processes if you
can.</div>
<x-sigsep><pre>-- 
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>