ThreadWeaver
ThreadWeaver::ShuttingDownState Class Reference
ShuttingDownState is enabled when the Weaver destructor is entered. More...
#include <ShuttingDownState.h>
Inheritance diagram for ThreadWeaver::ShuttingDownState:

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
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] |
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: