From: Francesco Chemolli Date: Thu, 29 Oct 2015 08:37:13 +0000 (+0100) Subject: Expose Pool use count in Mem::AllocatorProxy (and MEMPROXY_CLASS) X-Git-Tag: SQUID_4_0_2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b37e8905fb2d349669155f23d065a14a693d39f;p=thirdparty%2Fsquid.git Expose Pool use count in Mem::AllocatorProxy (and MEMPROXY_CLASS) --- diff --git a/src/mem/AllocatorProxy.h b/src/mem/AllocatorProxy.h index 18faf69434..1ea514da06 100644 --- a/src/mem/AllocatorProxy.h +++ b/src/mem/AllocatorProxy.h @@ -39,6 +39,7 @@ class MemPoolMeter; if (address) \ Pool().freeOne(address); \ } \ + static int UseCount() { return Pool().inUseCount(); } \ private: namespace Mem