mirror of https://github.com/procxx/kepka.git
fixed os x build
This commit is contained in:
parent
58de461c19
commit
01374e6dc5
|
@ -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) {
|
if (stopTimeoutMs > 0) {
|
||||||
_stopTimer = new QTimer(this);
|
_stopTimer = new QTimer(this);
|
||||||
connect(_stopTimer, SIGNAL(timeout()), this, SLOT(stop()));
|
connect(_stopTimer, SIGNAL(timeout()), this, SLOT(stop()));
|
||||||
|
|
|
@ -151,6 +151,9 @@ public:
|
||||||
|
|
||||||
virtual void process() = 0; // is executed in a separate thread
|
virtual void process() = 0; // is executed in a separate thread
|
||||||
virtual void finish() = 0; // is executed in the same as TaskQueue thread
|
virtual void finish() = 0; // is executed in the same as TaskQueue thread
|
||||||
|
virtual ~Task() {
|
||||||
|
}
|
||||||
|
|
||||||
TaskId id() const {
|
TaskId id() const {
|
||||||
return TaskId(this);
|
return TaskId(this);
|
||||||
}
|
}
|
||||||
|
@ -158,6 +161,7 @@ public:
|
||||||
};
|
};
|
||||||
typedef QSharedPointer<Task> TaskPtr;
|
typedef QSharedPointer<Task> TaskPtr;
|
||||||
|
|
||||||
|
class TaskQueueWorker;
|
||||||
class TaskQueue : public QObject {
|
class TaskQueue : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue