Hi ratis commuity!

Can we refer to the idea of RAII to handle ReferenceObject?


i.e.:
* function(ReferenceObject<T> requestRef) {*
*  ...*
*  try {*
*    requestReq.retain();*
*    ... *
*  } finaly {*
*    requestRef.release();*
*  }*
* }*


In this way, we should not miss release or retain every time we use
ReferenceCount

Reply via email to