]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/StoreIOState.cc
2 * Copyright (C) 1996-2021 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 */
15 #include "StoreIOState.h"
18 StoreIOState::operator new (size_t)
25 StoreIOState::operator delete (void *)
30 StoreIOState::StoreIOState(StoreIOState::STFNCB
*cbFile
, StoreIOState::STIOCB
*cbIo
, void *data
) :
36 file_callback(cbFile
),
38 callback_data(cbdataReference(data
))
41 read
.callback_data
= NULL
;
42 flags
.closing
= false;
45 StoreIOState::~StoreIOState()
47 debugs(20,3, "StoreIOState::~StoreIOState: " << this);
49 if (read
.callback_data
)
50 cbdataReferenceDone(read
.callback_data
);
53 cbdataReferenceDone(callback_data
);
56 bool StoreIOState::touchingStoreEntry() const
58 return e
&& e
->swap_filen
== swap_filen
;