#include <AsyncCall.h>


Public Types | |
typedef RefCount< AsyncCall > | Pointer |
Public Member Functions | |
AsyncCall (int aDebugSection, int aDebugLevel, const char *aName) | |
virtual | ~AsyncCall () |
void | make () |
bool | cancel (const char *reason) |
bool | canceled () |
virtual CallDialer * | getDialer ()=0 |
void | print (std::ostream &os) |
void | dequeue (AsyncCall::Pointer &head, AsyncCall::Pointer &prev) |
remove us from the queue; we are head unless we are queued after prev More... | |
void | setNext (AsyncCall::Pointer aNext) |
AsyncCall::Pointer & | Next () |
Public Attributes | |
const char *const | name |
CodeContext::Pointer | codeContext |
what the callee is expected to work on More... | |
const int | debugSection |
const int | debugLevel |
const InstanceId< AsyncCall > | id |
Protected Member Functions | |
virtual bool | canFire () |
virtual void | fire ()=0 |
Protected Attributes | |
AsyncCall::Pointer | theNext |
for AsyncCallList and similar lists More... | |
Private Member Functions | |
AsyncCall () | |
AsyncCall (const AsyncCall &) | |
Private Attributes | |
const char * | isCanceled |
Detailed Description
Definition at line 39 of file AsyncCall.h.
Member Typedef Documentation
◆ Pointer
typedef RefCount<AsyncCall> AsyncCall::Pointer |
Definition at line 42 of file AsyncCall.h.
Constructor & Destructor Documentation
◆ AsyncCall() [1/3]
Definition at line 21 of file AsyncCall.cc.
References debugLevel, debugs, debugSection, and name.
◆ ~AsyncCall()
|
virtual |
Definition at line 33 of file AsyncCall.cc.
◆ AsyncCall() [2/3]
|
private |
◆ AsyncCall() [3/3]
|
private |
Member Function Documentation
◆ cancel()
bool AsyncCall::cancel | ( | const char * | reason | ) |
Definition at line 56 of file AsyncCall.cc.
References debugLevel, debugs, debugSection, isCanceled, and name.
Referenced by AsyncJob::canBeCalled(), JobWaitBase::cancel(), JobDialer< Job >::canDial(), BodyProducerDialer::canDial(), BodyConsumerDialer::canDial(), EventDialer::canDial(), HappyOrderEnforcer::dequeue(), Comm::ReadCancel(), and StoreEntry::unregisterAbortCallback().
◆ canceled()
|
inline |
Definition at line 52 of file AsyncCall.h.
References isCanceled, and NULL.
Referenced by Downloader::doneAll(), HappyConnOpener::doneAll(), HappyConnOpener::futureAnswer(), and HappyConnOpener::swanSong().
◆ canFire()
|
protectedvirtual |
Reimplemented in CommCbFunPtrCallT< Dialer >, AsyncCallT< Dialer >, and AsyncCallT< AnswerDialer >.
Definition at line 67 of file AsyncCall.cc.
References isCanceled.
Referenced by AsyncCallT< AnswerDialer >::canFire(), CommCbFunPtrCallT< Dialer >::canFire(), and make().
◆ dequeue()
void AsyncCall::dequeue | ( | AsyncCall::Pointer & | head, |
AsyncCall::Pointer & | prev | ||
) |
◆ fire()
|
protectedpure virtual |
Implemented in CommCbFunPtrCallT< Dialer >, AsyncCallT< Dialer >, AsyncCallT< AnswerDialer >, and Adaptation::AnswerCall.
Referenced by make().
◆ getDialer()
|
pure virtual |
Implemented in CommCbFunPtrCallT< Dialer >, AsyncCallT< Dialer >, and AsyncCallT< AnswerDialer >.
Referenced by HappyConnOpener::HappyConnOpener(), Security::PeerConnector::PeerConnector(), Http::Tunneler::Tunneler(), Downloader::callBack(), HappyConnOpener::futureAnswer(), Ipc::Inquirer::HandleRemoteAck(), print(), sslCrtvdHandleReplyWrapper(), Ipc::StartListening(), and Ssl::CertValidationHelper::Submit().
◆ make()
void AsyncCall::make | ( | ) |
Definition at line 39 of file AsyncCall.cc.
References canFire(), debugLevel, debugs, debugSection, fire(), isCanceled, and name.
◆ Next()
|
inline |
Definition at line 65 of file AsyncCall.h.
References theNext.
Referenced by AsyncCallList::add(), dequeue(), and AsyncCallList::extract().
◆ print()
void AsyncCall::print | ( | std::ostream & | os | ) |
Definition at line 74 of file AsyncCall.cc.
References getDialer(), and name.
Referenced by operator<<().
◆ setNext()
|
inline |
Definition at line 61 of file AsyncCall.h.
References theNext.
Referenced by AsyncCallList::add(), dequeue(), and AsyncCallList::extract().
Member Data Documentation
◆ codeContext
CodeContext::Pointer AsyncCall::codeContext |
Definition at line 73 of file AsyncCall.h.
Referenced by CallSubscription< Call_ >::callback().
◆ debugLevel
const int AsyncCall::debugLevel |
Definition at line 76 of file AsyncCall.h.
Referenced by AsyncCall(), AsyncJob::callEnd(), AsyncJob::callStart(), cancel(), JobWaitBase::cancel(), BodyProducerDialer::canDial(), BodyConsumerDialer::canDial(), and make().
◆ debugSection
const int AsyncCall::debugSection |
Definition at line 75 of file AsyncCall.h.
Referenced by AsyncCall(), AsyncJob::callEnd(), AsyncJob::callStart(), cancel(), JobWaitBase::cancel(), BodyProducerDialer::canDial(), BodyConsumerDialer::canDial(), JobDialer< Job >::dial(), and make().
◆ id
const InstanceId<AsyncCall> AsyncCall::id |
Definition at line 77 of file AsyncCall.h.
Referenced by JobWaitBase::print().
◆ isCanceled
|
private |
Definition at line 87 of file AsyncCall.h.
Referenced by cancel(), canceled(), canFire(), and make().
◆ name
const char* const AsyncCall::name |
Definition at line 70 of file AsyncCall.h.
Referenced by AsyncCall(), cancel(), JobDialer< Job >::dial(), make(), and print().
◆ theNext
|
protected |
Definition at line 84 of file AsyncCall.h.
Referenced by ~AsyncCall(), Next(), and setNext().
The documentation for this class was generated from the following files:
- src/base/AsyncCall.h
- src/base/AsyncCall.cc