/usr/include/ossim/parallel/ossimJobThreadQueue.h is in libossim-dev 1.8.16-3+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | #ifndef ossimJobThreadQueue_HEADER
#define ossimJobThreadQueue_HEADER
#include <ossim/parallel/ossimJobQueue.h>
#include <OpenThreads/Mutex>
#include <OpenThreads/Thread>
class OSSIM_DLL ossimJobThreadQueue : public ossimReferenced,
public OpenThreads::Thread
{
public:
ossimJobThreadQueue(ossimJobQueue* jqueue=0);
void setJobQueue(ossimJobQueue* jqueue);
ossimJobQueue* getJobQueue();
const ossimJobQueue* getJobQueue() const;
ossimRefPtr<ossimJob> currentJob();
void cancelCurrentJob();
bool isValidQueue()const;
virtual void run();
void setDone(bool done);
bool isDone()const;
virtual int cancel();
bool isEmpty()const;
bool isProcessingJob()const;
bool hasJobsToProcess()const;
protected:
virtual ~ossimJobThreadQueue();
void startThreadForQueue();
virtual ossimRefPtr<ossimJob> nextJob();
bool m_doneFlag;
mutable OpenThreads::Mutex m_threadMutex;
ossimRefPtr<ossimJobQueue> m_jobQueue;
ossimRefPtr<ossimJob> m_currentJob;
};
#endif
|