11#ifndef DestructedState_H
12#define DestructedState_H
14#include "weaverimplstate.h"
33 void enqueue(
const QVector<JobPointer> &job)
override;
34 bool dequeue(
const JobPointer &job)
override;
43 JobPointer applyForWork(
Thread *th,
bool wasBusy)
override;
44 void waitForAvailableJob(
Thread *th)
override;
DestructedState is only active after the thread have been destroyed by the destructor,...
Definition destructedstate.h:24
StateId stateId() const override
The state Id.
int queueLength() const override
Returns the number of pending jobs.
int maximumNumberOfThreads() const override
Get the maximum number of threads this Weaver may start.
void requestAbort() override
Request aborts of the currently executed jobs.
void suspend() override
Suspend job execution.
void finish() override
Finish all queued operations, then return.
bool isEmpty() const override
Is the queue empty? The queue is empty if no more jobs are queued.
void dequeue() override
Remove all queued jobs.
bool isIdle() const override
Is the weaver idle? The weaver is idle if no jobs are queued and no jobs are processed by the threads...
Weaver * weaver() override
The Weaver interface this state handles.
void setMaximumNumberOfThreads(int cap) override
Set the maximum number of threads this Weaver object may start.
void enqueue(const QVector< JobPointer > &job) override
Queue a vector of jobs.
void resume() override
Resume job queueing.
int currentNumberOfThreads() const override
Returns the current number of threads in the inventory.
void shutDown() override
Shut down the queue.
bool dequeue(const JobPointer &job) override
Remove a job from the queue.
QueueSignals declares the Qt signals shared by the Queue and Weaver classes.
Definition queuesignals.h:24
Thread represents a worker thread in a Queue's inventory.
Definition thread.h:28
Base class for all WeaverImpl states.
Definition weaverimplstate.h:21
A Weaver manages worker threads.
Definition weaver.h:35