Re: TAG feedback on Web Audio

Yes, from the intel blog:
"a *data race* occurs when two threads access the same variable
concurrently and at least one of the accesses is a write"

You only need one writer for a data race to occur.


Adam



On Thu, Aug 1, 2013 at 11:41 AM, Jer Noble <jer.noble@apple.com> wrote:

>
> On Aug 1, 2013, at 7:13 AM, Adam Goode <agoode@google.com> wrote:
>
> That document is a bit misleading/outdated when it comes to data races
> being "harmless". This more recent article illustrates these issues:
>
> http://software.intel.com/en-us/blogs/2013/01/06/benign-data-races-what-could-possibly-go-wrong
>
>
> Perhaps you can clarify something for me.  In both the above page and the
> one Ehsan linked to earlier (<http://blog.regehr.org/archives/490>), a
> "data race" occurrs when two threads are writing to the same memory.  In
> the WebAudio API "data races" we are discussing, the main thread is
> potentially writing to memory which the audio thread is reading.  I.e., the
> audio thread never writes to these buffers.
>
> Should this still be considered a "data race"?
>
> -Jer
>
>

Received on Thursday, 1 August 2013 15:50:28 UTC