<div><br></div><div><includetail><div>&nbsp;two thread send frames to only encoder at same time,two thread will use one buffer</div><div>.it will work wrong if not&nbsp;<font color="#333333" face="arial, sans-serif" size="2"><span style="line-height: normal; ">Handling thread synchronization.</span></font></div><div>if not use same state, it need more memory, but no need to consider thread safe.</div><div>&nbsp;</div><div style="font:Verdana normal 14px;color:#000;"><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------&nbsp;原始邮件&nbsp;------------------</div><div style="FONT-SIZE: 12px;background:#efefef;padding:8px;"><div id="menu_sender"><b>发件人:</b>&nbsp;"Jean-Marc Valin"&lt;jmvalin@jmvalin.ca&gt;;</div><div><b>发送时间:</b>&nbsp;2011年12月6日(星期二) 下午3:24</div><div><b>收件人:</b>&nbsp;""烂馍馍.""&lt;xialonghua@vip.qq.com&gt;; <wbr></div><div><b>抄送:</b>&nbsp;"speex-dev"&lt;speex-dev@xiph.org&gt;; <wbr></div><div><b>主题:</b>&nbsp;Re: 回复: [Speex-dev] (no subject)</div></div><div>&nbsp;</div>Well, please explain what you would expect from a "thread safe" codec<br>when you encode two frames at a time from the same encoder.<br><br>        Jean-Marc<br><br>On 11-12-05 11:56 PM, 烂馍馍. wrote:<br>&gt; yes, you are right.but its not one instance of codec.<br>&gt;&nbsp; <br>&gt;&nbsp; <br>&gt; ------------------ 原始邮件 ------------------<br>&gt; *发件人:* "Jean-Marc Valin"&lt;jmvalin@jmvalin.ca&gt;;<br>&gt; *发送时间:* 2011年12月6日(星期二) 中午12:52<br>&gt; *收件人:* "speex-dev"&lt;speex-dev@xiph.org&gt;;<br>&gt; *主题:* Re: [Speex-dev] (no subject)<br>&gt;&nbsp; <br>&gt; Actually, it *is* thread safe as long as you don't use the *same* state<br>&gt; at the same time from two calls. i.e. you can easily encode two<br>&gt; different streams from two different threads.<br>&gt; <br>&gt; Jean-Marc<br>&gt; <br>&gt; On 11-12-01 04:55 AM, 烂馍馍. wrote:<br>&gt;&gt; it.s not safe.<br>&gt;&gt; <br>&gt;&gt; <br>&gt;&gt; ------------------ Original ------------------<br>&gt;&gt; *From: * "Денис Ромашенко"&lt;romius99@mail.ru&gt;;<br>&gt;&gt; *Date: * Thu, Dec 1, 2011 04:43 PM<br>&gt;&gt; *To: * "speex-dev"&lt;speex-dev@xiph.org&gt;;<br>&gt;&gt; *Subject: * [Speex-dev] (no subject)<br>&gt;&gt; <br>&gt;&gt; Hi.<br>&gt;&gt;&nbsp; Is the speexlib thread safe?<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Speex-dev mailing list<br>&gt;&gt; Speex-dev@xiph.org<br>&gt;&gt; http://lists.xiph.org/mailman/listinfo/speex-dev<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt;<br>&gt;&gt; _______________________________________________<br>&gt;&gt; Speex-dev mailing list<br>&gt;&gt; Speex-dev@xiph.org<br>&gt;&gt; http://lists.xiph.org/mailman/listinfo/speex-dev<br>&gt; _______________________________________________<br>&gt; Speex-dev mailing list<br>&gt; Speex-dev@xiph.org<br>&gt; http://lists.xiph.org/mailman/listinfo/speex-dev<br><br></div></includetail></div>