On Tue, Oct 13, 2020 at 5:15 AM Erin Shepherd <erin.sheph...@e43.eu> wrote:

> > I think that ThreadSanitizer is having trouble recognizing that the
> initialization of `brokenCapFactory` is thread-safe, due to the awkward way
> in which it is initialized. It may end up being initialized by multiple
> threads, but all threads will initialize it to the same value, hence no
> atomics are necessary when reading it later.
>
> This doesn't hold unless every thread reading it also once wrote it.
>

That is the case here.

-Kenton

-- 
You received this message because you are subscribed to the Google Groups 
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to capnproto+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/capnproto/CAJouXQn5Q%2Bz6Z2B9cuNUX6-tWF5E80EKMhB0wBqFAprkbuVBPw%40mail.gmail.com.

Reply via email to