Robert Collins wrote:
> > If you only wish to use them as "reference counted allocations" then
> you
> > can theoretically do this by only saving a reference pointer..
> >
> > foo = cbdataAlloc()
> > saved_foo = foo; cbdataLock(foo);
> > cbdataFree(foo);
> > ...
> > cbdataUnlock(saved_foo);
>
> Well thats what I tried, but all through the code cbdataValid() will
> spit the dummy as well.
There is no point of using cbdataValid on reference counted allocations
I think.
Can you give a good example of what you are doing that is reference
counted but still needs cbdata, and why you need to have the reference
counting changed to do it?
-- HenrikReceived on Wed May 09 2001 - 12:31:34 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:00 MST