Displaying 3 results from an estimated 3 matches for "lsp_quant_".
2004 Aug 06
2
Thread Safety
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
2004 Aug 06
1
Thread Safety
Jean-Marc Valin wrote:
> > Are they actually read-only or are they initialized once? In the latter
> > case, you need to protect the initialization section...
>
> No, they're written to every time you enter the lsp_quant_* routines
> below. The only reason why this isn't catastrophic is that even wrong
> values (two threads writing at the same time) will only produce slightly
> sub-optimal results. The fix I proposed was to make the variable local
> in each function, since the value is never used aft...
2004 Aug 06
2
Thread Safety
> 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