ThreadWeaver
#include <WeaverObserver.h>
Signals | |
void | threadBusy (ThreadWeaver::Thread *, ThreadWeaver::Job *) |
void | threadExited (ThreadWeaver::Thread *) |
void | threadStarted (ThreadWeaver::Thread *) |
void | threadSuspended (ThreadWeaver::Thread *) |
void | weaverStateChanged (ThreadWeaver::State *) |
Public Member Functions | |
WeaverObserver (QObject *parent=0) | |
virtual | ~WeaverObserver () |
Detailed Description
Observers provides signals on some Weaver events that are otherwise only available through objects of different classes (threads, jobs).
Usually, access to the signals of those objects is not provided through the ThreadWeaver API. Use an observer to receive notice, for example, on thread activity.
Observers are registered through the WeaverInterface API (see WeaverInterface::registerObserver).
To unregister, simply delete the observer.
Observers are meant to be used within the controlling thread (usually the main thread), that creates the Jobs. If this is not the case, be aware not to delete Job objects externally that you reference in a WeaverObserver implementation.
Definition at line 58 of file WeaverObserver.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 33 of file WeaverObserver.cpp.
|
virtual |
Definition at line 38 of file WeaverObserver.cpp.
Member Function Documentation
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.