AsyncJobCalls.h File Reference
#include "base/AsyncJob.h"
#include "base/CbcPointer.h"
#include "Debug.h"
Include dependency graph for AsyncJobCalls.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  JobDialer< Job >
 
class  NullaryMemFunT< Job >
 
class  UnaryMemFunT< Job, Data, Argument1 >
 

Macros

#define CallJobHere(debugSection, debugLevel, job, Class, method)
 
#define CallJobHere1(debugSection, debugLevel, job, Class, method, arg1)
 
#define JobCallback(dbgSection, dbgLevel, Dialer, job, method)
 Convenience macro to create a Dialer-based job callback. More...
 

Functions

template<class Dialer >
bool CallJob (int debugSection, int debugLevel, const char *fileName, int fileLine, const char *callName, const Dialer &dialer)
 schedule an async job call using a dialer; use CallJobHere macros instead More...
 
template<class C >
NullaryMemFunT< CJobMemFun (const CbcPointer< C > &job, typename NullaryMemFunT< C >::Method method)
 
template<class C , class Argument1 >
UnaryMemFunT< C, Argument1 > JobMemFun (const CbcPointer< C > &job, typename UnaryMemFunT< C, Argument1 >::Method method, Argument1 arg1)
 

Macro Definition Documentation

#define CallJobHere (   debugSection,
  debugLevel,
  job,
  Class,
  method 
)
Value:
CallJob((debugSection), (debugLevel), __FILE__, __LINE__, \
(#Class "::" #method), \
JobMemFun<Class>((job), &Class::method))
bool CallJob(int debugSection, int debugLevel, const char *fileName, int fileLine, const char *callName, const Dialer &dialer)
schedule an async job call using a dialer; use CallJobHere macros instead
Definition: AsyncJobCalls.h:50
size_t HttpReply *STUB StoreEntry const KeyScope scope const HttpRequestMethod & method
Definition: stub_store.cc:126

Definition at line 57 of file AsyncJobCalls.h.

Referenced by Adaptation::Initiator::announceInitiatorAbort(), Downloader::callBack(), Security::PeerConnector::NegotiateSsl(), HttpStateData::proceedAfter1xx(), Ftp::Server::processParsedRequest(), Ipc::Forwarder::RequestTimedOut(), Ipc::Inquirer::RequestTimedOut(), Adaptation::Icap::ServiceRep::scheduleNotification(), AsyncJob::Start(), Rock::Rebuild::Steps(), and Adaptation::Icap::Xaction::swanSong().

#define CallJobHere1 (   debugSection,
  debugLevel,
  job,
  Class,
  method,
  arg1 
)
Value:
CallJob((debugSection), (debugLevel), __FILE__, __LINE__, \
(#Class "::" #method), \
JobMemFun((job), &Class::method, (arg1)))
NullaryMemFunT< C > JobMemFun(const CbcPointer< C > &job, typename NullaryMemFunT< C >::Method method)
bool CallJob(int debugSection, int debugLevel, const char *fileName, int fileLine, const char *callName, const Dialer &dialer)
schedule an async job call using a dialer; use CallJobHere macros instead
Definition: AsyncJobCalls.h:50
size_t HttpReply *STUB StoreEntry const KeyScope scope const HttpRequestMethod & method
Definition: stub_store.cc:126

Definition at line 62 of file AsyncJobCalls.h.

Referenced by Adaptation::AccessCheck::callBack(), Ssl::PeekingPeerConnector::cbCheckForPeekAndSpliceDone(), PeerPoolMgr::Checkpoint(), FwdState::completed(), FwdState::connectedToPeer(), FwdState::dispatch(), Ftp::Relay::forwardPreliminaryReply(), HttpStateData::handle1xx(), HttpStateData::processReplyBody(), Ftp::Relay::serverComplete(), and Adaptation::Icap::Xaction::tellQueryAborted().

#define JobCallback (   dbgSection,
  dbgLevel,
  Dialer,
  job,
  method 
)
Value:
asyncCall((dbgSection), (dbgLevel), #method, \
AsyncCall * asyncCall(int aDebugSection, int aDebugLevel, const char *aName, const Dialer &aDialer)
Definition: AsyncCall.h:156
size_t HttpReply *STUB StoreEntry const KeyScope scope const HttpRequestMethod & method
Definition: stub_store.cc:126

Definition at line 68 of file AsyncJobCalls.h.

Referenced by Ftp::Server::checkDataConnPre(), Ftp::Client::Client(), Ftp::Client::connectDataChannel(), Log::TcpLogger::connectDone(), Comm::ConnOpener::createFd(), Ftp::Client::dataCloser(), Comm::ConnOpener::DelayedConnectRetry(), Log::TcpLogger::DelayedReconnect(), Ipc::UdsSender::DelayedRetry(), Adaptation::Icap::Xaction::dnsLookupDone(), Log::TcpLogger::doConnect(), Ipc::Port::doListen(), HttpStateData::finishingBrokenPost(), HttpStateData::finishingChunkedRequest(), Ftp::Relay::forwardPreliminaryReply(), ConnStateData::getSslContextDone(), HttpStateData::handle1xx(), Ftp::Server::handleDataReply(), PeerPoolMgr::handleOpenedConnection(), Ftp::Server::handleUploadRequest(), httpsEstablish(), HttpStateData::HttpStateData(), Comm::ConnOpener::InProgressConnectRetry(), Ftp::Gateway::listenForDataChannel(), Ftp::Server::listenForDataConnection(), Ftp::Server::maybeReadUploadData(), HttpStateData::maybeReadVirginBody(), Ftp::Client::maybeReadVirginBody(), PeerPoolMgr::openNewConnection(), ConnStateData::pinConnection(), Security::PeerConnector::prepareSocket(), ConnStateData::readNextRequest(), Server::readSomeData(), ConnStateData::receivedFirstByte(), Adaptation::Icap::Xaction::scheduleRead(), Ftp::Client::scheduleReadControlReply(), Adaptation::Icap::Xaction::scheduleWrite(), Ftp::Relay::sendCommand(), HttpStateData::sendComplete(), ConnStateData::sendControlMsg(), Client::sendMoreRequestBody(), HttpStateData::sendRequest(), Comm::TcpAcceptor::setListen(), Http::One::Server::start(), Ipc::Forwarder::start(), ConnStateData::start(), ConnStateData::startPinnedConnectionMonitoring(), Ftp::Client::switchTimeoutToDataChannel(), ConnStateData::switchToHttps(), Adaptation::Icap::Xaction::updateTimeout(), Adaptation::Icap::ModXact::waitForService(), Server::write(), Ipc::UdsSender::write(), Ftp::Client::writeCommand(), Ftp::Server::writeEarlyReply(), Ftp::Server::writeForwardedReply(), Log::TcpLogger::writeIfPossible(), and Ftp::Server::writeReply().

Function Documentation

template<class Dialer >
bool CallJob ( int  debugSection,
int  debugLevel,
const char *  fileName,
int  fileLine,
const char *  callName,
const Dialer &  dialer 
)

Definition at line 50 of file AsyncJobCalls.h.

References asyncCall(), and ScheduleCall().

template<class C >
NullaryMemFunT<C> JobMemFun ( const CbcPointer< C > &  job,
typename NullaryMemFunT< C >::Method  method 
)

Definition at line 132 of file AsyncJobCalls.h.

References method.

Referenced by AsyncJob::deleteThis().

template<class C , class Argument1 >
UnaryMemFunT<C, Argument1> JobMemFun ( const CbcPointer< C > &  job,
typename UnaryMemFunT< C, Argument1 >::Method  method,
Argument1  arg1 
)

Definition at line 139 of file AsyncJobCalls.h.

References method.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors