Hi, I'm using CELT encoder/decoder from several threads (but *different* encoder/decoder objects from the different threads) and I have various crash or "abort" (like ec_byte_write_at_end calling "celt_fatal("byte buffer collision");" It there any threading issues to known when using CELT? Thanks Stephane Letz
Hi Stephane, not sure if that helps: I justed wanted to mention that I am also running CELT in the same way but do not experience such issues (Linux and OS X). Best -- A l e x Dr.-Ing. Alexander Car?t Email : Alexander at Carot.de Tel.: +49 (0)177 5719797 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/opus/attachments/20100309/af42f26c/attachment-0001.htm
St?phane Letz <letz at grame.fr> wrote:> It there any threading issues to known when using CELT?You cannot safely use the global stack with multiple threads, so one of VAR_ARRAYS or USE_ALLOCA must be defined. The former requires a C99-compliant compiler. The latter requires the POSIX function alloca. If neither is defined, the global stack is used as a fallback, and is likely what is causing your problems.