]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/StoreIOState.cc
2 * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
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.
9 /* DEBUG: section 20 Swap Dir base object */
14 #include "StoreIOState.h"
17 StoreIOState::operator new (size_t amount
)
24 StoreIOState::operator delete (void *address
) {assert (0);}
26 StoreIOState::StoreIOState() :
27 swap_dirn(-1), swap_filen(-1), e(NULL
), mode(O_BINARY
),
28 offset_(0), file_callback(NULL
), callback(NULL
), callback_data(NULL
)
31 read
.callback_data
= NULL
;
32 flags
.closing
= false;
36 StoreIOState::offset() const
41 StoreIOState::~StoreIOState()
43 debugs(20,3, "StoreIOState::~StoreIOState: " << this);
45 if (read
.callback_data
)
46 cbdataReferenceDone(read
.callback_data
);
49 cbdataReferenceDone(callback_data
);