ThreadWeaver
queuesignals.h
28 explicit QueueSignals(ThreadWeaver::Private::QueueSignals_Private *d, QObject *parent = nullptr);
34 * The Queue emits finished() when the job queue is empty, and the last job currently processed by a worker threads was
35 * completed. Beware that if multiple jobs are enqueued repeatedly one by one, this signal might be emitted multiple times, because the
36 * queued jobs where processed before new ones could be queued. To avoid this, queue all relevant jobs in a single operation,
43 * When the Queue is suspended, worker threads will not be assigned new jobs to process. Jobs waiting in the queue will not be
44 * started until processing is resumed. When suspend() is called, the worker threads will continue to process the job currently
WeaverInterface provides a common interface for weaver implementations.
Definition queueinterface.h:45
QueueSignals declares the Qt signals shared by the Queue and Weaver classes.
Definition queuesignals.h:24
void finished()
Emitted when the Queue has completed all jobs currently queued.
void stateChanged(ThreadWeaver::State *)
Emitted when the processing state of the Queue has changed.
We use a State pattern to handle the system state in ThreadWeaver.
Definition state.h:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:38 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.