|
Squid Web Cache master
|
Go to the source code of this file.
Classes | |
| class | RegisteredRunner |
| class | IndependentRunner |
| A RegisteredRunner with lifetime determined by forces outside the Registry. More... | |
Macros | |
| #define | RunRegisteredHere(m) |
| convenience macro to describe/debug the caller and the method being called | |
| #define | NameRunnerRegistrator_(Namespace, ClassName) Register ## ClassName ## In ## Namespace() |
| #define | DefineRunnerRegistrator_(Namespace, ClassName, Constructor) |
| #define | DefineRunnerRegistratorIn(Namespace, ClassName) DefineRunnerRegistrator_(Namespace, ClassName, Namespace::ClassName) |
| #define | DefineRunnerRegistrator(ClassName) DefineRunnerRegistrator_(Global, ClassName, ClassName) |
| #define | CallRunnerRegistratorIn(Namespace, ClassName) |
| #define | CallRunnerRegistrator(ClassName) CallRunnerRegistratorIn(Global, ClassName) |
Functions | |
| bool | RegisterRunner (RegisteredRunner *rr) |
| registers a given runner with the given registry and returns true on success | |
| void | RunRegistered (const RegisteredRunner::Method &m) |
| #define CallRunnerRegistrator | ( | ClassName | ) | CallRunnerRegistratorIn(Global, ClassName) |
Register one RegisteredRunner kid, known as ClassName (in the global namespace).
Definition at line 159 of file RunnersRegistry.h.
| #define CallRunnerRegistratorIn | ( | Namespace, | |
| ClassName | |||
| ) |
Register one RegisteredRunner kid, known as ClassName in Namespace.
Definition at line 151 of file RunnersRegistry.h.
| #define DefineRunnerRegistrator | ( | ClassName | ) | DefineRunnerRegistrator_(Global, ClassName, ClassName) |
Define registration code for the given RegisteredRunner-derived class known as ClassName (in global namespace). A matching CallRunnerRegistrator() call should run this code before any possible use of the being-registered module.
Definition at line 146 of file RunnersRegistry.h.
| #define DefineRunnerRegistrator_ | ( | Namespace, | |
| ClassName, | |||
| Constructor | |||
| ) |
helper macro that implements DefineRunnerRegistrator() and DefineRunnerRegistratorIn() using supplied constructor expression
Definition at line 128 of file RunnersRegistry.h.
| #define DefineRunnerRegistratorIn | ( | Namespace, | |
| ClassName | |||
| ) | DefineRunnerRegistrator_(Namespace, ClassName, Namespace::ClassName) |
Define registration code for the given RegisteredRunner-derived class known as ClassName in Namespace. A matching CallRunnerRegistratorIn() call should run this code before any possible use of the being-registered module.
Definition at line 139 of file RunnersRegistry.h.
| #define NameRunnerRegistrator_ | ( | Namespace, | |
| ClassName | |||
| ) | Register ## ClassName ## In ## Namespace() |
helps DefineRunnerRegistrator() and CallRunnerRegistrator() (and their namespace-sensitive variants) to use the same registration function name
Definition at line 123 of file RunnersRegistry.h.
| #define RunRegisteredHere | ( | m | ) |
Definition at line 117 of file RunnersRegistry.h.
| bool RegisterRunner | ( | RegisteredRunner * | rr | ) |
Definition at line 49 of file RunnersRegistry.cc.
References FindRunners(), GetRidOfRunner(), Must, and RegisterRunner_().
Referenced by Auth::CredentialsCache::CredentialsCache().
| void RunRegistered | ( | const RegisteredRunner::Method & | m | ) |
Calls a given method of all runners. All runners are destroyed after the finishShutdown() call.
Definition at line 64 of file RunnersRegistry.cc.
References FindRunners(), RegisteredRunner::finishShutdown(), GetRidOfRunner(), RunnersGone, and TheRunners.