Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
vasilvv
8 months ago
|
parent
|
context
|
favorite
| on:
A safe, non-owning C++ pointer class
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:
[0] https://chromium.googlesource.com/chromium/src/+/HEAD/base/m...