15#include <QSharedPointer>
36 bool shedule(
const QSharedPointer<AbstractTask>& task);
43 bool remove(
const QSharedPointer<AbstractTask>& task);
69 int getTimeout(qint64 timeout);
72 QMultiMap<quint64, int> _taskQueue;
73 QHash<int, QSharedPointer<AbstractTask>> _taskPool;
74 QTimer *_timer =
nullptr;
The TaskScheduler class This class contains queue of all shedule tasks.
void sigPushWork(QSharedPointer< QH::AbstractTask > work)
sigPushWork This signal emited when the task work neet to execute.
bool shedule(const QSharedPointer< AbstractTask > &task)
shedule This method shedule new task in this node.
int taskCount() const
taskCount This method return tasks count.
bool remove(const QSharedPointer< AbstractTask > &task)
remove This method remove the task from a tasks queue.
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...