fixed os x build

This commit is contained in:
John Preston 2015-09-29 21:59:26 +03:00
parent 58de461c19
commit 01374e6dc5
2 changed files with 5 additions and 1 deletions

View File

@ -414,7 +414,7 @@ LocalImageLoader::~LocalImageLoader() {
}
TaskQueue::TaskQueue(QObject *parent, int32 stopTimeoutMs) : QObject(parent), _worker(0), _thread(0), _stopTimer(0) {
TaskQueue::TaskQueue(QObject *parent, int32 stopTimeoutMs) : QObject(parent), _thread(0), _worker(0), _stopTimer(0) {
if (stopTimeoutMs > 0) {
_stopTimer = new QTimer(this);
connect(_stopTimer, SIGNAL(timeout()), this, SLOT(stop()));

View File

@ -151,6 +151,9 @@ public:
virtual void process() = 0; // is executed in a separate thread
virtual void finish() = 0; // is executed in the same as TaskQueue thread
virtual ~Task() {
}
TaskId id() const {
return TaskId(this);
}
@ -158,6 +161,7 @@ public:
};
typedef QSharedPointer<Task> TaskPtr;
class TaskQueueWorker;
class TaskQueue : public QObject {
Q_OBJECT