• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

ThreadWeaver

ThreadWeaver::ShuttingDownState

ThreadWeaver::ShuttingDownState Class Reference

ShuttingDownState is enabled when the Weaver destructor is entered. More...

#include <ShuttingDownState.h>

Inheritance diagram for ThreadWeaver::ShuttingDownState:
ThreadWeaver::StateImplementation ThreadWeaver::State

List of all members.

Public Member Functions

virtual Job * applyForWork (Thread *th, Job *previous)
virtual void resume ()
 ShuttingDownState (WeaverInterface *weaver)
StateId stateId () const
virtual void suspend ()
virtual void waitForAvailableJob (Thread *th)

Detailed Description

ShuttingDownState is enabled when the Weaver destructor is entered.

It prevents threads from still accessing queue management methods.

Definition at line 43 of file ShuttingDownState.h.


Constructor & Destructor Documentation

ThreadWeaver::ShuttingDownState::ShuttingDownState ( WeaverInterface *  weaver  )  [inline, explicit]

Definition at line 46 of file ShuttingDownState.h.


Member Function Documentation

Job * ShuttingDownState::applyForWork ( Thread *  th,
Job *  previous 
) [virtual]

Assign a job to an idle thread.

Implements ThreadWeaver::State.

Definition at line 43 of file ShuttingDownState.cpp.

void ShuttingDownState::resume (  )  [virtual]

Resume job processing.

Implements ThreadWeaver::State.

Definition at line 38 of file ShuttingDownState.cpp.

StateId ShuttingDownState::stateId (  )  const [virtual]

reimpl

Implements ThreadWeaver::State.

Definition at line 53 of file ShuttingDownState.cpp.

void ShuttingDownState::suspend (  )  [virtual]

Suspend job processing.

Implements ThreadWeaver::State.

Definition at line 33 of file ShuttingDownState.cpp.

void ShuttingDownState::waitForAvailableJob ( Thread *  th  )  [virtual]

Wait (by suspending the calling thread) until a job becomes available.

Implements ThreadWeaver::State.

Definition at line 48 of file ShuttingDownState.cpp.


The documentation for this class was generated from the following files:
  • ShuttingDownState.h
  • ShuttingDownState.cpp

ThreadWeaver

Skip menu "ThreadWeaver"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal