FX::QThread_DTHold Class Reference

#include <QThread.h>

Inheritance diagram for FX::QThread_DTHold:

Inheritance graph
[legend]

List of all members.


Detailed Description

Wraps thread termination disables in an exception-proof fashion.

This little helper class works similarly to FX::QMtxHold in disabling thread termination on construction and disabling it on destruction. Since FX::QThread::disableTermination() works by a reference count this works nicely. You can use undo() and redo() if needed.

Public Member Functions

 QThread_DTHold (QThread *t=QThread::current())
void undo ()
void redo ()


Constructor & Destructor Documentation

FX::QThread_DTHold::QThread_DTHold ( QThread t = QThread::current()  )  [inline]

Constructs an instance disabling thread termination for thread t.


Member Function Documentation

template<class obj = NullType, typename doaddr = NullType, typename undoaddr = NullType>
void FX::Generic::DoUndo< obj, doaddr, undoaddr >::undo (  )  [inline, inherited]

Undoes the action.

template<class obj = NullType, typename doaddr = NullType, typename undoaddr = NullType>
void FX::Generic::DoUndo< obj, doaddr, undoaddr >::redo (  )  [inline, inherited]

Redoes the action.


The documentation for this class was generated from the following file:

(C) 2002-2008 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Jun 13 22:28:59 2008 for TnFOX by doxygen v1.5.6