Precise GC state
Ola Fosheim Grostad
ola.fosheim.grostad at gmail.com
Mon Nov 27 07:09:25 UTC 2017
On Monday, 27 November 2017 at 06:59:30 UTC, Petar Kirov
[ZombineDev] wrote:
> the shared_ptr itself) and you can't opt out of that even if
> you're not sharing the shared_ptr with other threads.
Well, the compiler can in theory ellide atomics if it csn prove
that the memory cannot be accessed by another thread.
But it kinda is missing the point that if it only is in a single
thread then it would typically only have only one assignment.
Shared_ptr is for holding a resource not for using it...
More information about the Digitalmars-d
mailing list