diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-09-06 15:01:34 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-09-16 12:01:06 -0700 |
commit | 41bbd4e4f7d66465433e370ca024ab0239fcace3 (patch) | |
tree | 8fe15fa31d97aafeb175a808e431b437297af88b /src/mbgl/tile/raster_tile_worker.hpp | |
parent | 0bd66d40ddf9e75f860fe18e7c80de9c840f48ac (diff) | |
download | qtlocation-mapboxgl-41bbd4e4f7d66465433e370ca024ab0239fcace3.tar.gz |
[core] Use an actor model for tile worker concurrency
Diffstat (limited to 'src/mbgl/tile/raster_tile_worker.hpp')
-rw-r--r-- | src/mbgl/tile/raster_tile_worker.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mbgl/tile/raster_tile_worker.hpp b/src/mbgl/tile/raster_tile_worker.hpp new file mode 100644 index 0000000000..44bc37ca5d --- /dev/null +++ b/src/mbgl/tile/raster_tile_worker.hpp @@ -0,0 +1,22 @@ +#pragma once + +#include <mbgl/actor/actor_ref.hpp> + +#include <memory> +#include <string> + +namespace mbgl { + +class RasterTile; + +class RasterTileWorker { +public: + RasterTileWorker(ActorRef<RasterTileWorker>, ActorRef<RasterTile>); + + void parse(std::shared_ptr<const std::string> data); + +private: + ActorRef<RasterTile> parent; +}; + +} // namespace mbgl |