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

◆ RunnerRegistrationEntry

#define RunnerRegistrationEntry (   Who)
Value:
static const bool Who ## _Registered_ = \
RegisterRunner(new Who) > 0 && \
UseThisStatic(& Who ## _Registered_);

Definition at line 125 of file RunnersRegistry.h.

◆ RunRegisteredHere

#define RunRegisteredHere (   m)
Value:
debugs(1, 2, "running " # m); \
RunRegistered(&m)
#define debugs(SECTION, LEVEL, CONTENT)
Definition: Stream.h:194

Definition at line 117 of file RunnersRegistry.h.

Function Documentation

◆ RegisterRunner()

bool RegisterRunner ( RegisteredRunner rr)

◆ RunRegistered()

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.

◆ UseThisStatic()

bool UseThisStatic ( const void *  )

Definition at line 112 of file RunnersRegistry.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors