]>
Commit | Line | Data |
---|---|---|
b67e2c8c | 1 | /* |
bbc27441 | 2 | * Copyright (C) 1996-2014 The Squid Software Foundation and contributors |
26ac0430 | 3 | * |
bbc27441 AJ |
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. | |
b67e2c8c | 7 | */ |
8 | ||
bbc27441 AJ |
9 | /* DEBUG: section 77 Delay Pools */ |
10 | ||
f7f3304a | 11 | #include "squid.h" |
b67e2c8c | 12 | |
9a0a18de | 13 | #if USE_DELAY_POOLS |
b67e2c8c | 14 | #include "DelayPools.h" |
582c2af2 | 15 | #include "NullDelayId.h" |
b67e2c8c | 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 | ||
9a0a18de | 31 | #endif /* USE_DELAY_POOLS */ |
f53969cc | 32 |