summaryrefslogtreecommitdiff
path: root/noncore/multimedia/opieplayer2/threadutil.h
authorsimon <simon>2002-12-11 10:58:16 (UTC)
committer simon <simon>2002-12-11 10:58:16 (UTC)
commit616e7437498c7adcad77d9b79e9c450a75b260ca (patch) (unidiff)
treeb5a5291eabfc779b671a7436a377cc4a455b95bf /noncore/multimedia/opieplayer2/threadutil.h
parent6ee0a61001307e71f51d1e8c7beaa81a94df89aa (diff)
downloadopie-616e7437498c7adcad77d9b79e9c450a75b260ca.zip
opie-616e7437498c7adcad77d9b79e9c450a75b260ca.tar.gz
opie-616e7437498c7adcad77d9b79e9c450a75b260ca.tar.bz2
- make it compile for gcc2: step1
Diffstat (limited to 'noncore/multimedia/opieplayer2/threadutil.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/multimedia/opieplayer2/threadutil.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/noncore/multimedia/opieplayer2/threadutil.h b/noncore/multimedia/opieplayer2/threadutil.h
index b67b61d..21ae6b2 100644
--- a/noncore/multimedia/opieplayer2/threadutil.h
+++ b/noncore/multimedia/opieplayer2/threadutil.h
@@ -26,13 +26,12 @@
26 26
27class QSocketNotifier; 27class QSocketNotifier;
28 28
29extern "C" 29extern "C"
30{ 30{
31 void *_threadutil_start_thread( void* ); 31 void *_threadutil_start_thread( void* );
32 void _threadutil_terminate_thread( void* );
33} 32}
34 33
35namespace ThreadUtil 34namespace ThreadUtil
36{ 35{
37 36
38 class Mutex 37 class Mutex
@@ -87,14 +86,15 @@ namespace ThreadUtil
87 WaitCondition &operator=( const WaitCondition & ); 86 WaitCondition &operator=( const WaitCondition & );
88 }; 87 };
89 88
90 class Thread 89 class Thread
91 { 90 {
92 friend void *::_threadutil_start_thread( void* ); 91 friend void *::_threadutil_start_thread( void* );
93 friend void ::_threadutil_terminate_thread( void* );
94 public: 92 public:
93 struct Data;
94
95 Thread(); 95 Thread();
96 virtual ~Thread(); 96 virtual ~Thread();
97 97
98 void start(); 98 void start();
99 void terminate(); 99 void terminate();
100 100
@@ -104,13 +104,12 @@ namespace ThreadUtil
104 104
105 static void exit(); 105 static void exit();
106 protected: 106 protected:
107 virtual void run() = 0; 107 virtual void run() = 0;
108 108
109 private: 109 private:
110 struct Data;
111 Data *d; 110 Data *d;
112 }; 111 };
113 112
114 class OnewayNotifier : public QObject 113 class OnewayNotifier : public QObject
115 { 114 {
116 Q_OBJECT 115 Q_OBJECT