News for hackers. Stuff that matters.
Re:Without the Futex, It's Futile by dragontamer on Wednesday August 20, 2025 @12:01PM (#44963137)
Of course. That's just map<obj*>. The pointer-to-pointers could move but the pointers are now staying put. But now you have a bit of a lifetime worry.

Map<shared_ptr<obj>> with weak_ptr probably is the best general solution. If the object decided to delete itself the weakptr will be set to null.

There are no comments on this comment yet.