回复: 回复: (no subject)
"烂馍馍." <[email protected]> Tue, 6 Dec 2011 15:40:39 +0800
| Newsgroups | gmane.comp.audio.compression.speex.devel |
|---|---|
| Message-ID | <[email protected]> |
two thread send frames to only encoder at same time,two thread will use one buffer .it will work wrong if not Handling thread synchronization. if not use same state, it need more memory, but no need to consider thread safe. ------------------ 原始邮件 ------------------ 发件人: "Jean-Marc Valin"<[email protected]>; 发送时间: 2011年12月6日(星期二) 下午3:24 收件人: ""烂馍馍.""<[email protected]>; 抄送: "speex-dev"<[email protected]>; 主题: Re: 回复: [Speex-dev] (no subject) Well, please explain what you would expect from a "thread safe" codec when you encode two frames at a time from the same encoder. Jean-Marc On 11-12-05 11:56 PM, 烂馍馍. wrote: > yes, you are right.but its not one instance of codec. > > > ------------------ 原始邮件 ------------------ > *发件人:* "Jean-Marc Valin"<[email protected]>; > *发送时间:* 2011年12月6日(星期二) 中午12:52 > *收件人:* "speex-dev"<[email protected]>; > *主题:* Re: [Speex-dev] (no subject) > > Actually, it *is* thread safe as long as you don't use the *same* state > at the same time from two calls. i.e. you can easily encode two > different streams from two different threads. > > Jean-Marc > > On 11-12-01 04:55 AM, 烂馍馍. wrote: >> it.s not safe. >> >> >> ------------------ Original ------------------ >> *From: * "Денис Ромашенко"<[email protected]>; >> *Date: * Thu, Dec 1, 2011 04:43 PM >> *To: * "speex-dev"<[email protected]>; >> *Subject: * [Speex-dev] (no subject) >> >> Hi. >> Is the speexlib thread safe? >> >> _______________________________________________ >> Speex-dev mailing list >> [email protected] >> http://lists.xiph.org/mailman/listinfo/speex-dev >> >> >> >> _______________________________________________ >> Speex-dev mailing list >> [email protected] >> http://lists.xiph.org/mailman/listinfo/speex-dev > _______________________________________________ > Speex-dev mailing list > [email protected] > http://lists.xiph.org/mailman/listinfo/speex-dev _______________________________________________ Speex-dev mailing list [email protected] http://lists.xiph.org/mailman/listinfo/speex-dev