05Robot 3.0

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

ProcessorThread.h
Go to the documentation of this file.
1
7 #ifndef PROCESSORTHREAD_H
8 #define PROCESSORTHREAD_H
9
10 #include <QThread>
11 #include "ProcessorObject.h"
18 class ProcessorThread : public QThread
19 {
20 Q_OBJECT
21
22 public:
26 ProcessorObject * processorObject;
32 ProcessorThread(ProcessorObject * po)
33 {
34 processorObject = po;
35 this->start();
36 po->moveToThread(this);
37 }
41 ~ProcessorThread()
42 {
43 delete processorObject;
44 this->quit();
45 this->wait();
46 }
50 void run();
51
52 };
54 #endif
ProcessorObject
Wrapper object containing single processor, managing its processing and control pipelines, and properties.
Definition: ProcessorObject.h:28
ProcessorThread::processorObject
ProcessorObject * processorObject
Pointer to corresponding ProcessorObject.
Definition: ProcessorThread.h:26
ProcessorThread::ProcessorThread
ProcessorThread(ProcessorObject *po)
Moves ProcessorObject to thread.
Definition: ProcessorThread.h:32
ProcessorThread
Wrapper object containing single processor working thread.
Definition: ProcessorThread.h:18
ProcessorThread::~ProcessorThread
~ProcessorThread()
Default destructor, deletes corresponding ProcessorObject.
Definition: ProcessorThread.h:41
ProcessorObject.h
ProcessorThread::run
void run()
Starts processor thread.