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

ThreadWeaver

ThreadWeaver::ShuttingDownState

ThreadWeaver::ShuttingDownState Class Reference

#include <ShuttingDownState.h>

Inheritance diagram for ThreadWeaver::ShuttingDownState:

Inheritance graph
[legend]

List of all members.


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.


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)

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
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
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