1 #ifndef ossimJobThreadQueue_HEADER 2 #define ossimJobThreadQueue_HEADER 79 void setJobQueue(std::shared_ptr<ossimJobQueue> jqueue);
84 std::shared_ptr<ossimJobQueue> getJobQueue();
89 const std::shared_ptr<ossimJobQueue> getJobQueue()
const;
94 std::shared_ptr<ossimJob> currentJob();
99 void cancelCurrentJob();
104 bool isValidQueue()
const;
117 void setDone(
bool done);
139 bool isProcessingJob()
const;
145 bool hasJobsToProcess()
const;
152 void startThreadForQueue();
157 virtual std::shared_ptr<ossimJob> nextJob();
std::shared_ptr< ossimJobQueue > m_jobQueue
virtual void run()=0
This method must be overriden and is the main entry point for any work that needs to be done...
std::shared_ptr< ossimJob > m_currentJob
Thread is an abstract class.
ossimJobThreadQueue allows one to instantiate a thread with a shared queue.
virtual void cancel()
This basically requests that the thread be canceled.