]> git.ipfire.org Git - thirdparty/squid.git/commit
Polish: upgrade TunnelStateData to CBDATA_CLASS2()
authorAmos Jeffries <squid3@treenet.co.nz>
Sun, 7 Apr 2013 12:47:59 +0000 (06:47 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Sun, 7 Apr 2013 12:47:59 +0000 (06:47 -0600)
commit83564ee7b7531acb35524101eb1b0ca30e8c7da9
tree8018c624d5019a9747f1453b3b9657659c401ff6
parent8ca1d33d058ab61ba6cd5c965c5e6c4e25a4dca5
Polish: upgrade TunnelStateData to CBDATA_CLASS2()

CBDATA_CLASS2() removes the need to define new/delete operators and
removes soem uses of cbdataFree()/cbdataAlloc()

Also replaces several abuses of the cbdataInternal*() locking API with
CbcPointer<> auto-pointers. The existence of some of these locks needing
to be done is questionable since AsyncCalls scheduling protects better
against the 'deleted under our feets' problem.
 For now the locks are retained since it is not yet easy to track down
which are safe and which are removable.
src/tunnel.cc