MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / cleanupAndCommit

Method cleanupAndCommit

source/game/StarCelestialDatabase.cpp:173–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173void CelestialMasterDatabase::cleanupAndCommit() {
174 RecursiveMutexLocker locker(m_mutex);
175 m_chunkCache.cleanup();
176 if (m_database.isOpen() && m_commitTimer.timeUp()) {
177 m_database.commit();
178 m_commitTimer.restart(m_commitInterval);
179 }
180}
181
182bool CelestialMasterDatabase::coordinateValid(CelestialCoordinate const& coordinate) {
183 RecursiveMutexLocker locker(m_mutex);

Callers 1

doTriggeredStorageMethod · 0.80

Calls 5

timeUpMethod · 0.80
commitMethod · 0.80
cleanupMethod · 0.45
isOpenMethod · 0.45
restartMethod · 0.45

Tested by

no test coverage detected