10 #ifndef ossimMultiThreadSequencer_HEADER 11 #define ossimMultiThreadSequencer_HEADER 53 void setUseSharedHandlers(
bool use_shared_handlers);
55 void setUseCache(
bool use_cache);
67 double handlerGetTileT();
84 m_sequencer(sequencer),
85 t_launchNewJob(
true) {}
104 virtual void finished(std::shared_ptr<ossimJob> job)
ossim_uint32 getNumberOfThreads() const
Fetches the number of threads being used. Useful when this object decides the quantity.
ossim_uint32 m_nextTileID
ID of next tile to be threaded, different from base class' theCurrentTileNumber.
std::basic_ostringstream< char > ostringstream
Class for char output memory streams.
ossim::Block m_nextJobBlock
ossim_uint32 m_maxCacheSize
Represents serializable keyword/value map.
virtual void setToStartOfSequence()
std::shared_ptr< ossimGetTileCallback > m_callback
Private class representing a getTile job.
virtual ossimRefPtr< ossimImageData > getNextTile(ossim_uint32 resLevel=0)
ossimMultiThreadSequencer & m_sequencer
ossim_uint32 d_maxCacheUsed
ossim_uint32 m_numThreads
ossimGetTileJob(ossim_uint32 tile_id, ossim_uint32 chain_id, ossimMultiThreadSequencer &sequencer)
ossimRefPtr< ossimImageChainMtAdaptor > m_inputChain
Same as base class' theInputConnection.
ossim_uint32 d_cacheEmptyCount
virtual std::ostream & print(std::ostream &out) const
Outputs theErrorStatus as an ossimErrorCode and an ossimString.
ossim_uint32 m_maxTileCacheFactor
Private class for getTile job callbacks.
ossim_uint32 maxCacheSize() const
Accessed for performance logging.
unsigned int ossim_uint32
This is a very simple block interface.
std::map< ossim_uint32, ossimRefPtr< ossimImageData > > TileCache
std::shared_ptr< ossimJobMultiThreadQueue > m_jobMtQueue
bool loadState(const ossimKeywordlist &kwl, const char *prefix)
Method to the load (recreate) the state of an object from a keyword list.
TileCache m_tileCache
Saves tiles output by threaded jobs.
ossim_uint32 d_cacheTileSize
ossim_uint32 m_totalNumberOfTiles
This class manages the sequencing of tile requests across multiple threads.
ossim_uint32 d_timedBlocksDt
bool d_timeMetricsEnabled
This is the job callback interface It allows one to attach and listen for different states of the job...
ossim::Block m_getTileBlock
This is the job callback interface It allows one to attach and listen for different states of the job...
virtual void finished(std::shared_ptr< ossimJob > job)