ThreadWeaver::SuspendingState

Search for usage in LXR

ThreadWeaver::SuspendingState Class Reference

#include <suspendingstate.h>

Inheritance diagram for ThreadWeaver::SuspendingState:

Public Member Functions

 SuspendingState (Weaver *weaver)
 
void activated () override
 
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
 
QString stateName () const
 
- Public Member Functions inherited from ThreadWeaver::QueueInterface

Additional Inherited Members

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

Detailed Description

SuspendingState is the state after suspend() has been called, but before all threads finished executing the current job and blocked.

Definition at line 22 of file suspendingstate.h.

Constructor & Destructor Documentation

◆ SuspendingState()

ThreadWeaver::SuspendingState::SuspendingState ( Weaver * weaver)
explicit

Definition at line 18 of file suspendingstate.cpp.

Member Function Documentation

◆ activated()

void ThreadWeaver::SuspendingState::activated ( )
overridevirtual

Overload.

Reimplemented from ThreadWeaver::State.

Definition at line 33 of file suspendingstate.cpp.

◆ applyForWork()

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

Assign a job to an idle thread.

Definition at line 38 of file suspendingstate.cpp.

◆ resume()

void ThreadWeaver::SuspendingState::resume ( )
overridevirtual

Resume job processing.

Implements ThreadWeaver::QueueInterface.

Definition at line 28 of file suspendingstate.cpp.

◆ stateId()

StateId ThreadWeaver::SuspendingState::stateId ( ) const
overridevirtual

reimpl

Implements ThreadWeaver::State.

Definition at line 45 of file suspendingstate.cpp.

◆ suspend()

void ThreadWeaver::SuspendingState::suspend ( )
overridevirtual

Suspend job processing.

Implements ThreadWeaver::QueueInterface.

Definition at line 23 of file suspendingstate.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 Dec 6 2024 12:02:44 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.