59 bool firstTime =
true;
60 bool validQueue =
true;
61 std::shared_ptr<ossimJob> job;
212 std::shared_ptr<ossimJob> job;
214 std::shared_ptr<ossimJobQueue> jobQueue =
m_jobQueue;
219 job = jobQueue->nextJob(
true);
void cancelCurrentJob()
Will cancel the current job.
bool isValidQueue() const
std::shared_ptr< ossimJobQueue > m_jobQueue
void setJobQueue(std::shared_ptr< ossimJobQueue > jqueue)
Sets the shared queue that this thread will be pulling jobs from.
virtual void interrupt()
This is the interrupt interface and will cause an internal exception that is caught by...
void start()
Will actually start the thread and will call the.
virtual std::shared_ptr< ossimJob > nextJob()
Will return the next job on the queue.
std::shared_ptr< ossimJobQueue > getJobQueue()
virtual void run()
This is method is overriden from the base thread class and is the main entry point of the thread...
std::shared_ptr< ossimJob > currentJob()
virtual void cancel()
Cancels the thread.
std::shared_ptr< ossimJob > m_currentJob
ossimJobThreadQueue(std::shared_ptr< ossimJobQueue > jqueue=0)
constructor that allows one to instantiat the thread with a shared job queue.
void setDone(bool done)
Sets the done flag.
void resume()
This will resume a blocked thread.
void startThreadForQueue()
Internal method.
static void yieldCurrentThread()
Will yield the current thread.
bool isProcessingJob() const
virtual ~ossimJobThreadQueue()
destructor.
bool hasJobsToProcess() const
void pause()
Enables the thread to be paused.