/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#include "DelayPool.h"
#include "Store.h"
-DelayPool::DelayPool() : pool (NULL), access (NULL)
+DelayPool::DelayPool() : pool (nullptr), access (nullptr)
{
pool = CommonPool::Factory(0, theComposite_);
}
void
DelayPool::parse()
{
- assert(theComposite() != NULL);
+ assert(theComposite() != nullptr);
theComposite()->parse();
}
void
DelayPool::dump(StoreEntry *entry, unsigned int i) const
{
- if (theComposite() == NULL)
+ if (theComposite() == nullptr)
return;
storeAppendPrintf(entry, "delay_class %d %s\n", i + 1, pool->theClassTypeLabel());
DelayPool::freeData()
{
delete pool;
- pool = NULL;
+ pool = nullptr;
}
-/** \todo XXX create DelayIdComposite.cc */
+// TODO: create DelayIdComposite.cc
void
-CompositePoolNode::delayRead(DeferredRead const &aRead)
+CompositePoolNode::delayRead(const AsyncCall::Pointer &aRead)
{
- deferredReads.delayRead(aRead);
+ deferredReads.delay(aRead);
}
#include "comm.h"
void
CompositePoolNode::kickReads()
{
- deferredReads.kickReads(-1);
+ deferredReads.schedule();
}
#endif /* USE_DELAY_POOLS */
+