Is Speex internally thread safe? <p>--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Yes, i have been using speex in my VoIP gateway product. There are hundreds of threads that simultaneously call various speex APIs and execute without any problem. But ofcourse, I use a speex encoder/decoder vars on per stream basis. Its been tested successfully on Linux/Win2k. Aron Rosenberg wrote:> Is Speex internally thread safe? >--- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> Yes, i have been using speex in my VoIP gateway product. There are > hundreds of threads that simultaneously call various speex APIs and > execute without any problem. But ofcourse, I use a speex encoder/decoder > vars on per stream basis. Its been tested successfully on Linux/Win2k.Actually, I just realized I fixed a potential minor thread problem recently. It's in 1.1.1 but not in 1.0.2. I say the problem is minor because the worst case is slightly suboptimal encoding (decoding not affected), but no crash or pathological results. I'll include the fix in the next stable release. Jean-Marc -- Jean-Marc Valin, M.Sc.A., ing. jr. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Canada -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Ceci est une partie de message numériquement signée Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20031029/e832a0a6/signature-0001.pgp
Jean-Marc Valin wrote:> Never been tested but it should be. I don't use static variables (except > read-only which is OK).Are they actually read-only or are they initialized once? In the latter case, you need to protect the initialization section... <p>Segher --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage: http://www.xiph.org/ogg/ To unsubscribe from this list, send a message to 'speex-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
Le mer 29/10/2003 à 21:39, Aron Rosenberg a écrit :> Is Speex internally thread safe?Never been tested but it should be. I don't use static variables (except read-only which is OK). Of course, it's thread-safe in the sense that only different threads can work on different encoder/decoder states at the same time, not two threads on the same encoder (which is stupid in the first place). Jean-Marc -- Jean-Marc Valin, M.Sc.A., ing. jr. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Canada -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Ceci est une partie de message numériquement signée Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20031029/3ff77696/signature-0001.pgp