enforces happy_eyeballs_connect_timeout More...
Public Member Functions | |
PrimeChanceGiver () | |
bool | readyNow (const HappyConnOpener &job) const override |
void | checkpoint () |
resumes jobs that need resuming (if any) More... | |
void | enqueue (HappyConnOpener &) |
starts managing the job's wait; the job should expect a call back More... | |
void | dequeue (HappyConnOpener &) |
stops managing the job's wait; cancels the pending callback, if any More... | |
Public Attributes | |
const char *const | name |
waiting event name, for debugging More... | |
Protected Member Functions | |
bool | waiting () const |
bool | startedWaiting (const HappyAbsoluteTime lastStart, const int cfgTimeoutMsec) const |
Private Member Functions | |
AsyncCall::Pointer | notify (const CbcPointer< HappyConnOpener > &) override |
void | noteWaitOver () |
Static Private Member Functions | |
static void | NoteWaitOver (void *raw) |
Private Attributes | |
HappySpareWaitList | jobs_ |
queued jobs waiting their turn More... | |
HappyAbsoluteTime | waitEnd_ = 0 |
expected NoteWaitOver() call time (or zero) More... | |
Detailed Description
Definition at line 98 of file HappyConnOpener.cc.
Constructor & Destructor Documentation
◆ PrimeChanceGiver()
|
inline |
Definition at line 101 of file HappyConnOpener.cc.
Member Function Documentation
◆ checkpoint()
|
inherited |
Definition at line 173 of file HappyConnOpener.cc.
References CallBack(), HappyOrderEnforcer::jobs_, and HappyOrderEnforcer::readyNow().
Referenced by SpareAllowanceGiver::forgetAllowance(), and HappyOrderEnforcer::noteWaitOver().
◆ dequeue()
|
inherited |
Definition at line 161 of file HappyConnOpener.cc.
References HappySpareWait::callback, AsyncCall::cancel(), HappyOrderEnforcer::jobs_, Must, HappySpareWait::position, and HappyConnOpener::spareWaiting.
Referenced by HappyConnOpener::stopGivingPrimeItsChance(), and HappyConnOpener::stopWaitingForSpareAllowance().
◆ enqueue()
|
inherited |
Definition at line 152 of file HappyConnOpener.cc.
References HappySpareWait::callback, HappySpareWait::codeContext, CodeContext::Current(), HappyOrderEnforcer::jobs_, Must, HappySpareWait::position, and HappyConnOpener::spareWaiting.
Referenced by HappyConnOpener::maybeGivePrimeItsChance(), and HappyConnOpener::maybeOpenSpareConnection().
◆ noteWaitOver()
|
privateinherited |
Definition at line 224 of file HappyConnOpener.cc.
References HappyOrderEnforcer::checkpoint(), Must, HappyOrderEnforcer::waitEnd_, and HappyOrderEnforcer::waiting().
Referenced by HappyOrderEnforcer::NoteWaitOver().
◆ NoteWaitOver()
|
staticprivateinherited |
Definition at line 217 of file HappyConnOpener.cc.
References assert, and HappyOrderEnforcer::noteWaitOver().
Referenced by HappyOrderEnforcer::startedWaiting().
◆ notify()
|
overrideprivatevirtual |
Implements HappyOrderEnforcer.
Definition at line 240 of file HappyConnOpener.cc.
References CallJobHere.
◆ readyNow()
|
overridevirtual |
Implements HappyOrderEnforcer.
Definition at line 234 of file HappyConnOpener.cc.
References Config, SquidConfig::connect_timeout, SquidConfig::happyEyeballs, HappyConnOpener::primeStart, and HappyOrderEnforcer::startedWaiting().
Referenced by HappyConnOpener::maybeGivePrimeItsChance().
◆ startedWaiting()
|
protectedinherited |
Definition at line 189 of file HappyConnOpener.cc.
References assert, Config, current_dtime, eventAdd(), min(), HappyOrderEnforcer::name, HappyOrderEnforcer::NoteWaitOver(), HappyOrderEnforcer::waitEnd_, HappyOrderEnforcer::waiting(), and SquidConfig::workers.
Referenced by readyNow(), and SpareAllowanceGiver::readyNow().
◆ waiting()
|
inlineprotectedinherited |
Definition at line 75 of file HappyConnOpener.cc.
References HappyOrderEnforcer::waitEnd_.
Referenced by HappyOrderEnforcer::noteWaitOver(), and HappyOrderEnforcer::startedWaiting().
Member Data Documentation
◆ jobs_
|
privateinherited |
Definition at line 82 of file HappyConnOpener.cc.
Referenced by HappyOrderEnforcer::checkpoint(), HappyOrderEnforcer::dequeue(), and HappyOrderEnforcer::enqueue().
◆ name
|
inherited |
Definition at line 69 of file HappyConnOpener.cc.
Referenced by HappyOrderEnforcer::startedWaiting().
◆ waitEnd_
|
mutableprivateinherited |
Definition at line 83 of file HappyConnOpener.cc.
Referenced by HappyOrderEnforcer::noteWaitOver(), HappyOrderEnforcer::startedWaiting(), and HappyOrderEnforcer::waiting().
The documentation for this class was generated from the following file: