20 #ifndef __AUTOTHREAD_INC__
21 #define __AUTOTHREAD_INC__
28 #include <libbbb/libbbb.h>
29 #include <libbbb/amorph.h>
55 typedef RunFuncCode (*RunFunc) ( AutoThread * th );
77 # define TH_MULTIPLE libbbb::TH_EACH
148 AutoThread ( RunFunc rf_, QObject * parent = NULL);
182 virtual void run (
void );
200 #define AutoThreadN(name,cnt) \
201 class name : public AutoThread { \
202 Amorph d___[cnt-1]; \
204 virtual Amorph & data ( int i ) \
206 Q_ASSERT( i >= 0 ); \
207 Q_ASSERT( i < cnt ); \
215 AutoThreadN(AutoThread2,2);
216 AutoThreadN(AutoThread3,3);
217 AutoThreadN(AutoThread4,4);
218 AutoThreadN(AutoThread5,5);
227 #endif // __AUTOTHREAD_INC__