AsyncCall.h File Reference
#include "base/InstanceId.h"
#include "event.h"
#include "RefCount.h"
Include dependency graph for AsyncCall.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  AsyncCall
 
class  CallDialer
 
class  AsyncCallT< Dialer >
 

Macros

#define ScheduleCallHere(call)   ScheduleCall(__FILE__, __LINE__, (call))
 

Functions

std::ostream & operator<< (std::ostream &os, AsyncCall &call)
 
template<class Dialer >
AsyncCallasyncCall (int aDebugSection, int aDebugLevel, const char *aName, const Dialer &aDialer)
 
bool ScheduleCall (const char *fileName, int fileLine, AsyncCall::Pointer &call)
 

Macro Definition Documentation

◆ ScheduleCallHere

#define ScheduleCallHere (   call)    ScheduleCall(__FILE__, __LINE__, (call))

Call scheduling helper.

Definition at line 166 of file AsyncCall.h.

Referenced by _comm_close(), Adaptation::AccessCheck::AccessCheckCallbackWrapper(), Adaptation::Icap::ServiceRep::busyCheckpoint(), Downloader::callBack(), Rock::IoState::callBack(), Http::Tunneler::callBack(), Security::PeerConnector::callBack(), statefulhelper::cancelReservation(), EventScheduler::checkEvents(), checkTimeouts(), Log::TcpLogger::Close(), comm_poll_tcp_incoming(), commCallCloseHandlers(), commCloseAllSockets(), Comm::ConnOpener::DelayedConnectRetry(), Log::TcpLogger::DelayedReconnect(), Ipc::UdsSender::DelayedRetry(), Adaptation::Icap::Xaction::dnsLookupDone(), HttpControlMsgSink::doneWithControlMsg(), examine_select(), BodyPipe::expectNoConsumption(), Comm::IoCallback::finish(), Ipc::Inquirer::HandleRemoteAck(), Ipc::Forwarder::HandleRemoteAck(), Comm::ConnOpener::InProgressConnectRetry(), StoreEntry::kickProducer(), Mgr::StoreToCommWriter::NoteStoreCopied(), Adaptation::Icap::ServiceRep::noteTimeToNotify(), Comm::TcpAcceptor::notify(), Adaptation::Icap::Xaction::openConnection(), BodyPipe::postConsume(), Adaptation::Ecap::XactionRep::resume(), BodyPipe::scheduleBodyDataNotification(), BodyPipe::scheduleBodyEndNotification(), Adaptation::Initiate::sendAnswer(), Comm::ConnOpener::sendAnswer(), Ftp::Relay::sendCommand(), Ipc::SharedListenJoined(), ClientHttpRequest::sslBumpStart(), sslCrtvdHandleReplyWrapper(), Ipc::StartListening(), Ftp::Relay::stopOriginWait(), and Ssl::CertValidationHelper::Submit().

Function Documentation

◆ asyncCall()

template<class Dialer >
AsyncCall* asyncCall ( int  aDebugSection,
int  aDebugLevel,
const char *  aName,
const Dialer &  aDialer 
)
inline

Definition at line 156 of file AsyncCall.h.

References ScheduleCall().

Referenced by Adaptation::AccessCheck::AccessCheckCallbackWrapper(), Rock::IoState::callBack(), CallJob(), statefulhelper::cancelReservation(), EventScheduler::checkEvents(), clientHttpConnectionsOpen(), clientStartListeningOn(), Log::TcpLogger::Close(), TunnelStateData::connectedToPeer(), TunnelStateData::connectToPeer(), AsyncJob::deleteThis(), Adaptation::Icap::Xaction::dnsLookupDone(), FwdState::establishTunnelThruProxy(), BodyPipe::expectNoConsumption(), Snmp::Forwarder::Forwarder(), Mgr::Forwarder::Forwarder(), Client::handleMoreAdaptedBodyAvailable(), PeerPoolMgr::handleOpenedConnection(), helperOpenServers(), helperStatefulOpenServers(), htcpOpenPorts(), icpOpenPorts(), Ipc::Inquirer::inquire(), Mgr::Inquirer::Inquirer(), Snmp::Inquirer::Inquirer(), Adaptation::Icap::Xaction::noteCommConnected(), ClientHttpRequest::noteMoreBodyDataAvailable(), Mgr::StoreToCommWriter::NoteStoreCopied(), Adaptation::Icap::Xaction::openConnection(), BodyPipe::postConsume(), Http::One::Server::processParsedRequest(), Adaptation::Ecap::XactionRep::resume(), BodyPipe::scheduleBodyDataNotification(), BodyPipe::scheduleBodyEndNotification(), Mgr::StoreToCommWriter::scheduleCommWrite(), FwdState::secureConnectionToPeerIfNeeded(), Ipc::UdsOp::setTimeout(), snmpOpenPorts(), Security::PeerConnector::sslFinalized(), Mgr::Inquirer::start(), Security::PeerConnector::startCertDownloading(), Ftp::Relay::stopOriginWait(), and Mgr::StoreToCommWriter::StoreToCommWriter().

◆ operator<<()

std::ostream& operator<< ( std::ostream &  os,
AsyncCall call 
)
inline

Definition at line 97 of file AsyncCall.h.

References AsyncCall::print().

◆ ScheduleCall()

bool ScheduleCall ( const char *  fileName,
int  fileLine,
AsyncCall::Pointer call 
)

Call scheduling helper. Use ScheduleCallHere if you can.

Definition at line 90 of file AsyncCall.cc.

References debugs, AsyncCallQueue::Instance(), and AsyncCallQueue::schedule().

Referenced by asyncCall(), and CallJob().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors