/usr/include/ossim/parallel/ossimJobMultiThreadQueue.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 | #ifndef ossimJobMultiThreadQueue_HEADER
#define ossimJobMultiThreadQueue_HEADER
#include <ossim/parallel/ossimJobThreadQueue.h>
class OSSIM_DLL ossimJobMultiThreadQueue : public ossimReferenced
{
public:
typedef std::vector<ossimRefPtr<ossimJobThreadQueue> > ThreadQueueList;
ossimJobMultiThreadQueue(ossimJobQueue* q=0, ossim_uint32 nThreads=0);
ossimJobQueue* getJobQueue();
const ossimJobQueue* getJobQueue()const;
void setQueue(ossimJobQueue* q);
void setNumberOfThreads(ossim_uint32 nThreads);
ossim_uint32 getNumberOfThreads() const;
ossim_uint32 numberOfBusyThreads()const;
bool areAllThreadsBusy()const;
bool hasJobsToProcess()const;
protected:
mutable OpenThreads::Mutex m_mutex;
ossimRefPtr<ossimJobQueue> m_jobQueue;
ThreadQueueList m_threadQueueList;
};
#endif
|