9#ifndef THREADWEAVER_THREAD_H
10#define THREADWEAVER_THREAD_H
15#include "jobpointer.h"
16#include "threadweaver_export.h"
27class THREADWEAVER_EXPORT
Thread :
public QThread
53 unsigned int id()
const;
63#if THREADWEAVER_ENABLE_DEPRECATED_SINCE(5, 80)
69 THREADWEAVER_DEPRECATED_VERSION(5, 80,
"Use the QThread::started() signal")
70 void started(ThreadWeaver::
Thread *);
Thread represents a worker thread in a Queue's inventory.
Definition thread.h:28
Thread(Weaver *parent=nullptr)
Create a thread.
void run() override
The run method is reimplemented to execute jobs from the queue.
~Thread() override
The destructor.
void requestAbort()
Request the abortion of the job that is processed currently.
unsigned int id() const
Returns the thread id.
A Weaver manages worker threads.
Definition weaver.h:35