Scope the Tile worker thread to an Environment

We are also removing the code that is passing the Environment around
and instead, we get now the Environment in the TileData using
Environment::Get().

When processing the job, the work will be temporally registered to
the Environment as "TileWorker_0/0/0" which can be used for logging
in the future. At the end of the job, it gets unregistered
automatically from the Environment.
This commit is contained in:
Thiago Marcos P. Santos
2015-03-13 19:04:55 +02:00
committed by Konstantin Käfer
parent b5facd35bc
commit aa9adbb8f8
14 changed files with 43 additions and 48 deletions

View File

@@ -5,8 +5,8 @@
using namespace mbgl;
RasterTileData::RasterTileData(Tile::ID const &id_, TexturePool &texturePool,
const SourceInfo &source_, Environment &env_)
: TileData(id_, source_, env_), bucket(texturePool, layout) {
const SourceInfo &source_)
: TileData(id_, source_), bucket(texturePool, layout) {
}
RasterTileData::~RasterTileData() {