QCAD
Open Source 2D CAD
RThread.h
Go to the documentation of this file.
1 
20 #ifndef RTHREAD_H_
21 #define RTHREAD_H_
22 
23 #include "core_global.h"
24 
25 #include <QMetaType>
26 #include <QThread>
27 
28 #include "RRunner.h"
29 
35 class QCADCORE_EXPORT RThread: public QThread {
36 
37 Q_OBJECT
38 
39 public:
40  RThread(QObject * parent = 0);
41  virtual ~RThread();
42 
43  void start();
44 
45  static void yieldCurrentThread();
46 
47  static QString currentThreadAddress();
48  static QString currentThreadName();
49  static RThread* currentThread();
50 
51 signals:
52  void dorun();
53 
54 protected:
55  virtual void run();
56 };
57 
59 
60 #endif /* RTHREAD_H_ */
Copyright (c) 2011-2017 by Andrew Mustun.
Definition: RThread.h:35
#define QCADCORE_EXPORT
Definition: core_global.h:10
Q_DECLARE_METATYPE(RMath *)