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 Amorph & | data (int i) |
| data at a particular index | |
| AutoThread * | asObj (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 | |
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.