RE: cbdataFree

From: Robert Collins <robert.collins@dont-contact.us>
Date: Thu, 10 May 2001 13:54:10 +1000

 

> -----Original Message-----
> From: Henrik Nordstrom [mailto:hno@hem.passagen.se]
> Sent: Thursday, May 10, 2001 2:16 AM
> To: Robert Collins
> Cc: squid-dev@squid-cache.org
> Subject: Re: cbdataFree
>
>
> Robert Collins wrote:
>
> >
> > 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?

comm_read, recently written by Adrian uses cbdataValid to ensure the the
buffer passed for reading in to is cbdataLock and cbdataUnlockable. This
is due to us overloading cbdata I think and will go away as soon as a
refcount allocater is written.

Rob
 
> --
> Henrik
>
Received on Wed May 09 2001 - 22:02:29 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:01 MST