Re: cbdataFree

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 09 May 2001 18:15:50 +0200

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?

--
Henrik
Received 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