RunnersRegistry.h File Reference
This graph shows which files directly or indirectly include this file:

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 More...
 
#define RunnerRegistrationEntry(Who)
 convenience macro: register one RegisteredRunner kid as early as possible More...
 

Functions

bool RegisterRunner (RegisteredRunner *rr)
 registers a given runner with the given registry and returns true on success More...
 
void RunRegistered (const RegisteredRunner::Method &m)
 
bool UseThisStatic (const void *)
 convenience function to "use" an otherwise unreferenced static variable More...
 

Macro Definition Documentation

#define RunnerRegistrationEntry (   Who)
Value:
static const bool Who ## _Registered_ = \
RegisterRunner(new Who) > 0 && \
UseThisStatic(& Who ## _Registered_);
bool RegisterRunner(RegisteredRunner *rr)
registers a given runner with the given registry and returns true on success
bool UseThisStatic(const void *)
convenience function to "use" an otherwise unreferenced static variable

Definition at line 121 of file RunnersRegistry.h.

#define RunRegisteredHere (   m)
Value:
debugs(1, 2, "running " # m); \
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Debug.h:123
void RunRegistered(const RegisteredRunner::Method &m)

Definition at line 113 of file RunnersRegistry.h.

Referenced by SignalEngine::doShutdown(), SignalEngine::FinalShutdownRunners(), mainReconfigureFinish(), mainReconfigureStart(), SquidMain(), SquidShutdown(), StartUsingConfig(), and watch_child().

Function Documentation

bool RegisterRunner ( RegisteredRunner rr)
void RunRegistered ( const RegisteredRunner::Method m)

Calls a given method of all runners. All runners are destroyed after the finishShutdown() call.

Definition at line 63 of file RunnersRegistry.cc.

References FindRunners(), RegisteredRunner::finishShutdown(), GetRidOfRunner(), RunnersGone, and TheRunners.

bool UseThisStatic ( const void *  )

Definition at line 111 of file RunnersRegistry.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors