|
| | ParallelAdapter ()=default |
| | Instead of using a single WorkerObject, create a ParallelAdapter for your worker object subclass, and add() individual WorkerObjects.
|
| |
|
void | add (A *const worker) |
| |
| QObject * | asQObject () override |
| |
| bool | connect (const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type=Qt::AutoConnection) const override |
| | Connects signals outbound from all workers to a given receiver.
|
| |
| void | deactivate (WorkerObject::DeactivatingMode mode=WorkerObject::FlushSignals) override |
| |
|
const QMetaObject * | metaObject () const override |
| |
| const QMetaObject * | mocMetaObject () const override |
| | The moc-generated metaObject of the target object.
|
| |
|
int | qt_metacall (QMetaObject::Call _c, int _id, void **_a) override |
| |
| void | schedule () override |
| | The corresponding methods of all added worker objects will be called.
|
| |
| StaticMetacallFunction | staticMetacallPointer () override |
| |
| void | wait () override |
| |
| int | WorkerObjectQtMetacall (QMetaObject::Call _c, int _id, void **_a) override |
| | The qt_metacall of WorkerObject, one level above the target QObject.
|
| |
| | ParallelWorkers ()=default |
| | ParallelWorkers is a helper class to distribute work over several identical workers objects.
|
| |
| bool | optimalWorkerCountReached () const |
| |
|
void | setPriority (QThread::Priority priority) |
| |
|
|
typedef void(* | StaticMetacallFunction) (QObject *, QMetaObject::Call, int, void **) |
| |
|
void | add (WorkerObject *const worker) |
| |
|
const QMetaObject * | replacementMetaObject () const |
| |
|
int | replacementQtMetacall (QMetaObject::Call _c, int _id, void **_a) |
| | Replaces slot call distribution of the target QObject.
|
| |
|
int | replacementStaticQtMetacall (QMetaObject::Call _c, int _id, void **_a) |
| |
|
int | m_currentIndex = 0 |
| |
|
StaticMetacallFunction | m_originalStaticMetacall = nullptr |
| |
|
QMetaObject * | m_replacementMetaObject = nullptr |
| |
|
QList< WorkerObject * > | m_workers |
| |