Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: