Re: [PATCH] HttpMsgPointer

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 30 Aug 2010 23:20:27 +0000

On Mon, 30 Aug 2010 17:10:33 -0600, Alex Rousskov
<rousskov_at_measurement-factory.com> wrote:
> Added safe HttpMsg pointer wrapper that locks and unlocks the message.
>
> This class will not be needed if we switch to refcounting HttpMsg.
> Meanwhile, it allows to pass message pointers in AsyncCalls and avoid
> auto_ptr<> in exception-sensitive code.
>
> ---------
>
> I am considering making the HttpMsgPointerT::lock() and unlock() methods

> protected because it would be difficult for the caller to use them
> correctly and because it is probably not necessary for the caller to use

> them at all.

Indeed. The closer to RefCount these can behave the better for that future
transition.

Amos
Received on Mon Aug 30 2010 - 23:20:30 MDT

This archive was generated by hypermail 2.2.0 : Tue Aug 31 2010 - 12:00:05 MDT