summaryrefslogtreecommitdiff
path: root/src/mbgl/tile/vector_tile_data.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-05-25 20:28:18 +0200
committerKonstantin Käfer <mail@kkaefer.com>2016-05-25 21:51:25 +0200
commit6f1477f2d4aee46f41215d16dcc0a2755e4ae721 (patch)
treed8109233c1c585799f158833a4506346e13a1327 /src/mbgl/tile/vector_tile_data.hpp
parentc91e4ee1f4c9e7150090a8c40a49966a2e169c26 (diff)
downloadqtlocation-mapboxgl-6f1477f2d4aee46f41215d16dcc0a2755e4ae721.tar.gz
[core] split TileData::State::obsolete into its own thing
Diffstat (limited to 'src/mbgl/tile/vector_tile_data.hpp')
-rw-r--r--src/mbgl/tile/vector_tile_data.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mbgl/tile/vector_tile_data.hpp b/src/mbgl/tile/vector_tile_data.hpp
index b38fe3828b..2545df801b 100644
--- a/src/mbgl/tile/vector_tile_data.hpp
+++ b/src/mbgl/tile/vector_tile_data.hpp
@@ -64,6 +64,9 @@ private:
// Stores the placement configuration of how the text should be placed. This isn't necessarily
// the one that is being displayed.
PlacementConfig targetConfig;
+
+ // Used to signal the worker that it should abandon parsing this tile as soon as possible.
+ std::atomic<bool> obsolete { false };
};
} // namespace mbgl