16typedef std::set<RegisteredRunner*>
Runners;
73 for (
auto runner: oldRunners) {
74 if (runners->find(runner) != runners->end())
87 for (
auto runner: *runners)
void RunRegistered(const RegisteredRunner::Method &event)
std::set< RegisteredRunner * > Runners
a collection of unique runners, in no particular order
static void GetRidOfRunner(RegisteredRunner *rr)
static bool RunnersGone
used to avoid re-creating deleted TheRunners after shutdown finished.
static void RegisterRunner_(RegisteredRunner *rr)
static Runners * FindRunners()
bool RegisterRunner(RegisteredRunner *rr)
registers a given runner with the given registry and returns true on success
static Runners * TheRunners
all known runners
A RegisteredRunner with lifetime determined by forces outside the Registry.
void unregisterRunner()
unregisters self; safe to call multiple times
void(RegisteredRunner::* Method)()
a pointer to one of the above notification methods
virtual void finishShutdown()
Meant for cleanup of services needed by the already destroyed objects.