On Tuesday, April 14, 2020 at 7:38:44 AM UTC-4, Slawomir Pryczek wrote:
>
> Hi Guys, was wondering about some things related to multithread code.
>
> 2. For lazy initialization double-check pattern. I found on several
> sources that it is safe, still race detector complains about data races
> (
On Tuesday, 14 April 2020 12:38:44 UTC+1, Slawomir Pryczek wrote:
>
> 1. If data that is accessed or changed - it needs to go into CPU cache
> first, and AFAIK to caches whole memory block not just this single area of
> memory on which we're operating. When we're doing writes without
> synchroni