]>
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)
24 StoreIOState::operator delete (void *)
29 StoreIOState::StoreIOState() :
30 swap_dirn(-1), swap_filen(-1), e(NULL
), mode(O_BINARY
),
31 offset_(0), file_callback(NULL
), callback(NULL
), callback_data(NULL
)
34 read
.callback_data
= NULL
;
35 flags
.closing
= false;
39 StoreIOState::offset() const
44 StoreIOState::~StoreIOState()
46 debugs(20,3, "StoreIOState::~StoreIOState: " << this);
48 if (read
.callback_data
)
49 cbdataReferenceDone(read
.callback_data
);
52 cbdataReferenceDone(callback_data
);