◆ DataFetcher()
DataFetcher.
205 :
layer(std::move(layer_))
211 ,
queue(std::move(queue_))
213{
214}
Layer::Ptr layer
Definition layer.cc:46
ThreadPool::Ptr threadPool
Definition layer.cc:52
ThreadPool::WeakQueue::Ptr queue
Definition layer.cc:53
std::function< void()> on_finished
Definition layer.cc:54
int verTileCount
Definition layer.cc:49
int height
Definition layer.cc:47
int horTileCount
Definition layer.cc:48
SourcePresentation::Ptr sp
Definition layer.cc:51
ThreadPool::Ptr CpuBound()
Definition threadpoolimpl.cc:455
◆ operator()()
| void DataFetcher::operator() |
( |
| ) |
|
217{
219
221
223 std::vector<Tile::Ptr> tiles;
225 {
228 tiles.push_back(ti->getTileSync());
229 }
231
233
235 {
236 tileLine[x]->reportFinished();
237 }
238
241 {
243 if(!qj->setWork(successor))
244 {
246 }
247 }
248 else
249 {
252 }
253}
std::shared_ptr< CompressedTile > Ptr
Definition tiledbitmaplayer.hh:107
int currentRow
Definition layer.cc:50
static Ptr create()
QueueJumper.
Definition threadpoolimpl.cc:422
std::shared_ptr< QueueJumper > Ptr
Definition threadpool.hh:533
#define REDUCE_PRIO
Definition local.hh:12
#define DATAFETCH_PRIO
Definition local.hh:11
std::shared_ptr< void > Stuff
Definition stuff.hh:17
#define TILESIZE
Definition tiledbitmaplayer.hh:27
std::vector< CompressedTile::Ptr > CompressedTileLine
Definition tiledbitmaplayer.hh:240
◆ currentRow
| int DataFetcher::currentRow {0} |
|
private |
◆ height
◆ horTileCount
| int DataFetcher::horTileCount |
|
private |
◆ layer
◆ on_finished
| std::function<void()> DataFetcher::on_finished |
|
private |
◆ queue
◆ sp
◆ threadPool
◆ verTileCount
| int DataFetcher::verTileCount |
|
private |
The documentation for this class was generated from the following file: