MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / ~Root

Method ~Root

source/game/StarRoot.cpp:162–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162Root::~Root() {
163 Logger::info("Root: Shutting down Root");
164
165 {
166 MutexLocker locker(m_maintenanceStopMutex);
167 m_stopMaintenanceThread = true;
168 m_maintenanceStopCondition.signal();
169 }
170 m_maintenanceThread.finish();
171
172 m_reloadListeners.clearAllListeners();
173
174 writeConfig();
175
176 s_singleton.store(nullptr);
177}
178
179void Root::reload() {
180 Logger::info("Root: Reloading from disk");

Callers

nothing calls this directly

Calls 4

clearAllListenersMethod · 0.80
signalMethod · 0.45
finishMethod · 0.45
storeMethod · 0.45

Tested by

no test coverage detected