From 3fa1e93ca711fc9bbed1a6aab6a9e20e4b5e502a Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Wed, 21 Oct 2020 08:07:24 +0300 Subject: [PATCH] [routing] Adding a comment to FeaturesLoaderGuard. --- indexer/data_source.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indexer/data_source.hpp b/indexer/data_source.hpp index 824470f656..66636fb3b7 100644 --- a/indexer/data_source.hpp +++ b/indexer/data_source.hpp @@ -89,6 +89,11 @@ public: /// Guard for loading features from particular MWM by demand. /// @note This guard is suitable when mwm is loaded. +/// @note If you need to work with |FeatureType| from different threads you need to use +/// a unique |FeaturesLoaderGuard| instance for every threads. Construction of +/// |FeaturesLoaderGuard| should be serialized. Then instances of |FeaturesLoaderGuard| +/// may be used concurrently. The example of concurrent use of |FeaturesLoaderGuard| +/// please see |ConcurrentFeatureParsingTest|. class FeaturesLoaderGuard { public: