28 Oct
2024
28 Oct
'24
10:02 p.m.
On Oct 28, 2024, at 2:57 PM, Darin Adler <darin@apple.com> wrote:
Why isn’t the destructor a problem? Seems like we still need to protect the object if the SetOnceRefPtr itself might be destroyed.
We’d rely on transitive property. Since our rule / convention is that the caller of a member function keeps “this” object alive, the destructor of SetOnceRefPtr wouldn’t run while the member function is being called. - R. Niwa