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

Method signalRegion

source/game/StarCelestialDatabase.cpp:626–633  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

624}
625
626void CelestialSlaveDatabase::signalRegion(RectI const& region) {
627 RecursiveMutexLocker locker(m_mutex);
628
629 for (auto location : chunkIndexesFor(region)) {
630 if (!m_chunkCache.ptr(location) && !m_pendingChunkRequests.contains(location))
631 m_pendingChunkRequests[location] = Timer();
632 }
633}
634
635void CelestialSlaveDatabase::signalSystem(CelestialCoordinate const& system) {
636 RecursiveMutexLocker locker(m_mutex);

Callers

nothing calls this directly

Calls 3

TimerClass · 0.50
ptrMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected