[speex-dev] Thread Safety
Segher Boessenkool
segher at kernel.crashing.org
Thu Oct 30 09:57:30 PST 2003
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 after the function
> returns.
I'm not talking about your bug, but about the data you said was read-only.
Sorry if I wasn't clear enough.
<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 at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Speex-dev
mailing list