diff options
author | Harald Fernengel <harald@trolltech.com> | 2009-06-26 09:35:16 (GMT) |
---|---|---|
committer | Jason Barron <jbarron@trolltech.com> | 2009-06-29 12:07:00 (GMT) |
commit | f1d3ed3a4adc2f1859102afb03b5c794d569940c (patch) | |
tree | a27602762705501c80fe689aac23c376612aa77e /src/corelib/thread | |
parent | db8f05e257019694f5e8076845626008f2adc3dd (diff) | |
download | Qt-f1d3ed3a4adc2f1859102afb03b5c794d569940c.zip Qt-f1d3ed3a4adc2f1859102afb03b5c794d569940c.tar.gz Qt-f1d3ed3a4adc2f1859102afb03b5c794d569940c.tar.bz2 |
Manually fix bad merges and make sure everything compiles with 4.6.
Diffstat (limited to 'src/corelib/thread')
-rw-r--r-- | src/corelib/thread/qthread_p.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/corelib/thread/qthread_p.h b/src/corelib/thread/qthread_p.h index c575005..0735746 100644 --- a/src/corelib/thread/qthread_p.h +++ b/src/corelib/thread/qthread_p.h @@ -211,6 +211,21 @@ public: # endif }; +// thread wrapper for the main() thread +class QAdoptedThread : public QThread +{ + Q_DECLARE_PRIVATE(QThread) + +public: + QAdoptedThread(QThreadData *data = 0); + ~QAdoptedThread(); + void init(); + + static QThread *createThreadForAdoption(); +private: + void run(); +}; + QT_END_NAMESPACE #endif // QTHREAD_P_H |