Privacy and Security Notice
Archived Messages for CDEV_1996@cebaf.gov: Re: Weird Science...
Re: Weird Science...
Walt Akers (akers@cebaf.gov)
Fri, 13 Dec 1996 13:12:06 EST
>
>
> What if a callback function is used by multiple transaction objects? If one
> transaction object says it finishes, caller frees its memory, but other
> transaction objects need something from callers. I still believe that
> caller should have total control.
>
> --Jie Chen
>
If the developer knows that the userarg is being used in multiple
callbacks, he can manage it (by way of a reference count or some other
trick) and only delete it when the reference count goes to 0.
The developer is ulitmately responsible for deleting the data, I
just need someway for CDEV to inform the developer that it is no
longer using a cdevCallback object/cdevTranObj object.
Walt
--
=============================================================
Walt Akers Voice: (757)269-7669 E-Mail: akers@cebaf.gov
Thomas Jefferson National Accelerator Facility
12000 Jefferson Avenue, MS 16A
Newport News, Va 23606
=============================================================