| 633 | } |
| 634 | |
| 635 | void CelestialSlaveDatabase::signalSystem(CelestialCoordinate const& system) { |
| 636 | RecursiveMutexLocker locker(m_mutex); |
| 637 | |
| 638 | if (auto chunk = m_chunkCache.ptr(chunkIndexFor(system))) { |
| 639 | if (!chunk->systemObjects.contains(system.location())) |
| 640 | m_pendingSystemRequests[system.location()] = Timer(); |
| 641 | } else { |
| 642 | signalRegion(RectI::withSize(system.location().vec2(), {1, 1})); |
| 643 | } |
| 644 | } |
| 645 | |
| 646 | List<CelestialRequest> CelestialSlaveDatabase::pullRequests() { |
| 647 | RecursiveMutexLocker locker(m_mutex); |