An important pull request: accessing shared affix for immutable data
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sat Feb 13 09:42:02 PST 2016
On 02/13/2016 11:55 AM, Timon Gehr wrote:
> If you alias the same data as both shared and unshared, the shared
> version can be sent to another thread which will then modify it,
> violating the guarantees on the unshared reference.
Oh, I understand. So you're thinking of someone taking the address of
allocator.prefix(block) and sharing it across threads? -- Andrei
More information about the Digitalmars-d
mailing list