libbbb  1.2.1
Groups common code used in some applications and libraries.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
libbbb::AutoThread Class Reference

represents a thread that deletes itself when it has done its job More...

#include <autothread.h>

+ Inheritance diagram for libbbb::AutoThread:

Public Member Functions

 AutoThread (RunFunc rf_, QObject *parent=NULL)
 constructor;
 
virtual ~AutoThread (void)
 destructor;
 
virtual Amorphdata (int i)
 data at a particular index
 
AutoThreadasObj (void)
 avoid static cast in subclasses
 

Protected Member Functions

virtual void run (void)
 called in new context; will call rf_
 

Protected Attributes

Amorph d_
 storage space
 

Detailed Description

represents a thread that deletes itself when it has done its job

The thread supports a run function and passing parameters to the run function.

This class is not thread safe. It should be initialised from a thread and never dealed with it after calling start.


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