6 ms·
This sounds very similar to how base::WeakPtr works in Chromium [0]. It's a reasonable design, but it only works as long as the pointer is only accessed from th
by vasilvv 1y ago
This sounds very similar to how base::WeakPtr works in Chromium [0]. It's a reasonable design, but it only works as long as the pointer is only accessed from the same thread it is created.
[0] https://chromium.googlesource.com/chromium/src/+/HEAD/base/memory/weak_ptr.h https://chromium.googlesource.com/chromium/src/+/HEAD/base/m...