ThreadWeaver 5.109.0
|
Thread represents a worker thread in a Queue's inventory. More...
#include <thread.h>
Signals | |
void | started (ThreadWeaver::Thread *) |
The thread has been started. | |
Public Member Functions | |
Thread (Weaver *parent=nullptr) | |
Create a thread. | |
~Thread () override | |
The destructor. | |
unsigned int | id () const |
Returns the thread id. | |
void | requestAbort () |
Request the abortion of the job that is processed currently. | |
void | run () override |
The run method is reimplemented to execute jobs from the queue. | |
Thread represents a worker thread in a Queue's inventory.
Threads are created and managed by queues on demand. A Thread will try to retrieve and process jobs from the queue until it is told to exit.
|
explicit |
Create a thread.
parent | the parent Weaver |
|
override |
The destructor.
unsigned int ThreadWeaver::Thread::id | ( | ) | const |
void ThreadWeaver::Thread::requestAbort | ( | ) |
Request the abortion of the job that is processed currently.
If there is no current job, this method will do nothing, but can safely be called. It forwards the request to the current Job.
|
override |
|
signal |
The thread has been started.
QThread::started()
signal