Y
Hacker News
new
|
ask
|
show
|
jobs
by
vasilvv
257 days 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/m...