[core] Use weak annotation manager

Map and renderer / orchestrator should be able to run on a separate threads,
however, legacy AnnotationManager is shared between Map and Renderer, therefore
is not a thread safe. Until AnnotationManager is deprecated and removed from a
code-base, use it only via weak pointers.
This commit is contained in:
Alexander Shalamov
2020-02-27 11:46:17 +02:00
parent c5155dcf33
commit 81e116d41a
14 changed files with 89 additions and 83 deletions

View File

@@ -39,7 +39,7 @@ public:
transformState,
fileSource,
MapMode::Continuous,
annotationManager,
annotationManager.makeWeakPtr(),
imageManager,
glyphManager,
0};