Lame_enc线程安全吗?

时间:2010-12-28 12:57:51

标签: c++

我需要知道lame_enc线程是否安全?

2 个答案:

答案 0 :(得分:2)

截至LAME 3.99.5 HACKING

THREADSAFE:

Lame should now be thread safe and re-entrant. 
The only problem seems to be some OS's allocate small
stacks (< 128K) to threads launched by applictions, and this
is not enough for LAME.  Fix is to increase the stack space,
or move some of our automatic variables onto the heap with
by using bug-prove malloc()'s and free().

答案 1 :(得分:0)

不确定它是如何完成的,但有一种方法可以使用多个线程来增强编码过程。

请参阅this.

<强>更新

测试here表示他们使用Lame MT (多线程)来对CPU进行基准测试。我想这是另一个证据,跛脚编码可以在不同的线程中完成。 您可能希望将文件拆分为多个块并在单独的管道中处理它们。