05Robot 3.0

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

SyncThread.h
Go to the documentation of this file.
1
7 #ifndef SYNCTHREAD_H
8 #define SYNCTHREAD_H
9
10 #include <QThread>
11 #include "SyncObject.h"
15 class SyncThread : public QThread
16 {
17 Q_OBJECT
18
19 public:
20 SyncObject * syncObject;
21
22 SyncThread(SyncObject * so)
23 {
24 syncObject = so;
25 this->start();
26 so->moveToThread(this);
27 }
28 ~SyncThread()
29 {
30 delete syncObject;
31 this->quit();
32 this->wait();
33 }
34 void run();
35
36 };
38 #endif
SyncThread::run
void run()
SyncThread::syncObject
SyncObject * syncObject
Definition: SyncThread.h:20
SyncThread
Definition: SyncThread.h:15
SyncObject
Definition: SyncObject.h:21
SyncThread::~SyncThread
~SyncThread()
Definition: SyncThread.h:28
SyncThread::SyncThread
SyncThread(SyncObject *so)
Definition: SyncThread.h:22
SyncObject.h