]> git.ipfire.org Git - thirdparty/squid.git/commit - src/DiskIO/DiskDaemon/DiskdIOStrategy.h
Polish: update the RefCount API a bt and split Lock out
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 29 Oct 2012 04:59:58 +0000 (22:59 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 29 Oct 2012 04:59:58 +0000 (22:59 -0600)
commit8bf217bd43b7f15a7e2c14aa21800dc16b7e9af4
tree31acf30bcd262eb508e56f2040d82805fe34a444
parent45bb03812cb68af775325092731082b5485e9dce
Polish: update the RefCount API a bt and split Lock out

* Shuffle RefCount.h and its unit-tests into src/base/

* Reworks struct Refcountable_  into class LockableObject in its own header
 + changing the reference counter accessors to a lock()/unlock() names
 + some minor symbol updates of code directly utilizing the RefCountable_
   members

With this we can begin the process of replacing our multiple different
implementations of the reference-counting pattern using LockableObject.

No code changes have been made. Just symbol polishing.

TODO: update the unit-tests for refcounting to use CPPUnit
58 files changed:
src/AccessLogEntry.h
src/ClientRequestContext.h
src/DelayIdComposite.h
src/DiskIO/DiskDaemon/DiskdFile.cc
src/DiskIO/DiskDaemon/DiskdIOStrategy.cc
src/DiskIO/DiskDaemon/DiskdIOStrategy.h
src/DiskIO/DiskDaemon/diomsg.h
src/DiskIO/DiskFile.h
src/DiskIO/DiskIOStrategy.h
src/DiskIO/IORequestor.h
src/DiskIO/ReadRequest.h
src/DiskIO/WriteRequest.h
src/MemBlob.cc
src/MemBlob.h
src/NullDelayId.h
src/SquidConfig.h
src/Store.h
src/StoreIOState.h
src/StoreSearch.h
src/adaptation/History.h
src/adaptation/Message.h
src/adaptation/Service.h
src/adaptation/ServiceConfig.h
src/adaptation/ServiceGroups.h
src/adaptation/icap/History.h
src/adaptation/icap/icap_log.h
src/auth/Scheme.h
src/auth/User.cc
src/auth/User.h
src/auth/UserRequest.cc
src/auth/basic/UserRequest.h
src/auth/digest/UserRequest.cc
src/auth/negotiate/UserRequest.cc
src/auth/ntlm/UserRequest.cc
src/base/Lock.h [new file with mode: 0644]
src/base/Makefile.am
src/base/RefCount.h [moved from include/RefCount.h with 78% similarity]
src/base/testRefCount.cc [moved from test-suite/refcount.cc with 97% similarity]
src/clientStream.h
src/client_side.h
src/client_side_reply.h
src/comm/Connection.h
src/comm/forward.h
src/esi/Element.h
src/esi/Parser.h
src/esi/Segment.h
src/format/Format.h
src/forward.h
src/fs/rock/RockSwapDir.cc
src/fs/ufs/RebuildState.h
src/ipc/Request.h
src/ipc/Response.h
src/ipc/mem/Pointer.h
src/log/Formats.h
src/mgr/QueryParam.h
src/mgr/forward.h
src/ssl/ErrorDetailManager.h
test-suite/Makefile.am