]> git.ipfire.org Git - thirdparty/squid.git/blob - src/NullDelayId.cc
SourceFormat Enforcement
[thirdparty/squid.git] / src / NullDelayId.cc
1 /*
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 /* DEBUG: section 77 Delay Pools */
10
11 #include "squid.h"
12
13 #if USE_DELAY_POOLS
14 #include "DelayPools.h"
15 #include "NullDelayId.h"
16
17 void *
18 NullDelayId::operator new(size_t size)
19 {
20 DelayPools::MemoryUsed += sizeof (NullDelayId);
21 return ::operator new (size);
22 }
23
24 void
25 NullDelayId::operator delete (void *address)
26 {
27 DelayPools::MemoryUsed -= sizeof (NullDelayId);
28 ::operator delete (address);
29 }
30
31 #endif /* USE_DELAY_POOLS */
32