Contains the definition for AutoThread class.
More...
#include <libbbb/libbbb.h>
#include <libbbb/amorph.h>
#include <QThread>
Go to the source code of this file.
|
#define | TH_MULTIPLE libbbb::TH_EACH |
| more than one worker threads
|
|
#define | AutoThreadN(name, cnt) |
|
|
typedef RunFuncCode(* | libbbb::RunFunc )(AutoThread *th) |
| function called in the context of the new thread
|
|
|
enum | RunFuncCode { EXIT_NOW,
ENTER_EXEC
} |
| return values for RunFunc; decide what to do next
|
|
enum | ThreadStg { libbbb::TH_SAME = 0,
libbbb::TH_WORKER
} |
| types of threads
|
|
|
| libbbb::AutoThreadN (AutoThread2, 2) |
|
| libbbb::AutoThreadN (AutoThread3, 3) |
|
| libbbb::AutoThreadN (AutoThread4, 4) |
|
| libbbb::AutoThreadN (AutoThread5, 5) |
|
Contains the definition for AutoThread class.
- Date
- Jan 2013
- Author
- TNick
#define AutoThreadN |
( |
|
name, |
|
|
|
cnt |
|
) |
| |
Value:class name :
public AutoThread {
\
public: \
virtual
Amorph & data (
int i ) \
{ \
Q_ASSERT( i >= 0 ); \
Q_ASSERT( i < cnt ); \
if ( i == 0 ) \
return d_; \
else \
return d___[i-1]; \
} \
}