Implemented synchronous update for GeoJSON source (#3968)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Alex Cristici
2025-12-03 01:02:29 +02:00
committed by GitHub
parent f25a4581fe
commit 29d70ef0bb
32 changed files with 408 additions and 116 deletions

View File

@@ -193,8 +193,9 @@ GeometryTile::GeometryTile(const OverscaledTileID& id_,
ImageRequestor(parameters.imageManager),
threadPool(parameters.threadPool),
mailbox(std::make_shared<Mailbox>(*Scheduler::GetCurrent())),
worker(parameters.threadPool, // Scheduler reference for the Actor retainer
ActorRef<GeometryTile>(*this, mailbox),
worker(parameters.isUpdateSynchronous,
parameters.threadPool, // Scheduler reference for the Actor retainer
OptionalActorRef<GeometryTile>(parameters.isUpdateSynchronous, *this, mailbox),
parameters.threadPool,
id_,
sourceID,