QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
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
35class QCADCORE_EXPORT RThread: public QThread {
36
37Q_OBJECT
38
39public:
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
51signals:
52 void dorun();
53
54protected:
55 virtual void run();
56};
57
59
60#endif /* RTHREAD_H_ */
Q_DECLARE_METATYPE(RMath *)
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RThread.h:35
void dorun()
#define QCADCORE_EXPORT
Definition core_global.h:10