Search for usage in LXR

ThreadWeaver::SuspendedState Class Reference

#include <suspendedstate.h>

Inheritance diagram for ThreadWeaver::SuspendedState:

Public Member Functions

 SuspendedState (Weaver *weaver)
JobPointer applyForWork (Thread *th, bool wasBusy) override
void resume () override
StateId stateId () const override
void suspend () override
- Public Member Functions inherited from ThreadWeaver::WeaverImplState
 WeaverImplState (QueueSignals *weaver)
int currentNumberOfThreads () const override
void dequeue () override
bool dequeue (const JobPointer &job) override
void enqueue (const QList< JobPointer > &jobs) override
void finish () override
bool isEmpty () const override
bool isIdle () const override
int maximumNumberOfThreads () const override
int queueLength () const override
void requestAbort () override
void reschedule () override
void setMaximumNumberOfThreads (int cap) override
void shutDown () override
const Statestate () const override
void waitForAvailableJob (Thread *th) override
- Public Member Functions inherited from ThreadWeaver::State
 State (QueueSignals *weaver)
 ~State () override
virtual void activated ()
QString stateName () const

Additional Inherited Members

- Protected Member Functions inherited from ThreadWeaver::WeaverImplState
const Weaverweaver () const override
Weaverweaver () override

Detailed Description

In SuspendedState, jobs are queued, but will not be executed.

All thread remains blocked.

Definition at line 21 of file suspendedstate.h.

Constructor & Destructor Documentation

◆ SuspendedState()

ThreadWeaver::SuspendedState::SuspendedState ( Weaver * weaver)

Definition at line 17 of file suspendedstate.cpp.

Member Function Documentation

◆ applyForWork()

JobPointer ThreadWeaver::SuspendedState::applyForWork ( Thread * th,
bool wasBusy )

Assign a job to an idle thread.

Definition at line 32 of file suspendedstate.cpp.

◆ resume()

void ThreadWeaver::SuspendedState::resume ( )

Resume job processing.

Implements ThreadWeaver::QueueInterface.

Definition at line 27 of file suspendedstate.cpp.

◆ stateId()

StateId ThreadWeaver::SuspendedState::stateId ( ) const


Implements ThreadWeaver::State.

Definition at line 40 of file suspendedstate.cpp.

◆ suspend()

void ThreadWeaver::SuspendedState::suspend ( )

Suspend job processing.

Implements ThreadWeaver::QueueInterface.

Definition at line 22 of file suspendedstate.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 12 2024 11:52:00 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.