Re: cvs commit: squid3/src/ICAP ICAPConfig.cc MsgPipeData.h

From: Duane Wessels <wessels@dont-contact.us>
Date: Fri, 24 Feb 2006 18:21:16 -0700 (MST)

On Mon, 20 Feb 2006, Henrik Nordstrom wrote:

> On Fri, 17 Feb 2006 wessels wrote:
>
>> Removed static requestLink() and requestUnlink() methods. Replaced them
>> with HTTPMSGLOCK() and HTTPMSGUNLOCK() macros.
>
> Ugh.. why?

Because I think its annoying to have to write

    if (foo) {
         foo->unlock();
         foo = NULL;
    }

in so many places.

> Any change introducing macros into C++ code is... in nearly all cases not
> well thought over..
>
> The correct solution is that HttpRequest (or perhaps HttpMsg) should be
> refcounted I think.

I started down that path and wasted about 4 days on it. Switching
from normal pointers to ::Pointer is not pleasant for something
that is used so pervasively.

Duane W.
Received on Fri Feb 24 2006 - 18:21:17 MST

This archive was generated by hypermail pre-2.1.9 : Tue Feb 28 2006 - 12:00:05 MST