[CELT-dev] user defined allocator and thread safe

Gregory Maxwell gmaxwell at gmail.com
Thu Oct 14 17:43:54 PDT 2010


On Thu, Oct 14, 2010 at 8:11 PM, Jean-Marc Valin <jmvalin at gmail.com> wrote:
> On 10-10-14 07:23 PM, Pascal Pochol wrote:
>>  - if it was thread safe in general.
> Why not use alloca() or C-99 variable-length arrays?

Jean-Marc's comment here may not have been clear enough. The celt
library supports three models for stack-like usage internally.  A
'pseudo-stack' which is only thread safe if you have a complete mode
setup per thread, alloca(), and C-99 var arrays.

Our configure scripts use C99 var arrays where available and alloca
failing that.



More information about the celt-dev mailing list