Still digesting the explanation (thanks!) but one follow up question:
On 07/17/2015 04:37 PM, Rafael Schloming wrote:
it isn't actually possible to use the object when there refcount is 0.
What is the purpose of the incref/decref pattern then, e.g. as used in pn_session_free()? That is designed to trigger the finalizer, right? If so it would seem that can only happen if the reference count is 0 at the point when pn_session_free() is called.
(And if it was valid to call pn_session_free for a given session, then that session would have been valid for use before that, no?)
