[Openib-windows] RE: Reference count as a solution to the problemof an object life time

Sean Hefty sean.hefty at intel.com
Mon Sep 19 14:54:36 PDT 2005


>> I believe that this difference is what forces one to wait for the destroy
>> completion. This difference is when the number of call backs is not known to
>> the user. In my approach the library can play with the reference count and
>> make sure that it is increased even when there are more than one callback,
>> while on your model (one removes the reference in the callback) one can not
>> know when to remove the reference.
>
>You do know when to remove the reference - in the destroy callback.  Once the
>deref call is invoked, no further callbacks will ever occur for that object.


What problem is being solved here?

- Sean




More information about the ofw mailing list