-rw-r--r-- | noncore/multimedia/opieplayer2/threadutil.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/multimedia/opieplayer2/threadutil.h b/noncore/multimedia/opieplayer2/threadutil.h index 2fd0c68..1411535 100644 --- a/noncore/multimedia/opieplayer2/threadutil.h +++ b/noncore/multimedia/opieplayer2/threadutil.h | |||
@@ -72,32 +72,33 @@ namespace ThreadUtil | |||
72 | 72 | ||
73 | void wakeOne(); | 73 | void wakeOne(); |
74 | void wakeAll(); | 74 | void wakeAll(); |
75 | 75 | ||
76 | private: | 76 | private: |
77 | struct Data; | 77 | struct Data; |
78 | Data *d; | 78 | Data *d; |
79 | 79 | ||
80 | WaitCondition( const WaitCondition & ); | 80 | WaitCondition( const WaitCondition & ); |
81 | WaitCondition &operator=( const WaitCondition & ); | 81 | WaitCondition &operator=( const WaitCondition & ); |
82 | }; | 82 | }; |
83 | 83 | ||
84 | class Thread | 84 | class Thread |
85 | { | 85 | { |
86 | public: | 86 | public: |
87 | struct Data; | 87 | struct Data; |
88 | friend struct Data; | ||
88 | 89 | ||
89 | Thread(); | 90 | Thread(); |
90 | virtual ~Thread(); | 91 | virtual ~Thread(); |
91 | 92 | ||
92 | void start(); | 93 | void start(); |
93 | void terminate(); | 94 | void terminate(); |
94 | 95 | ||
95 | bool wait(); | 96 | bool wait(); |
96 | 97 | ||
97 | bool isRunning() const; | 98 | bool isRunning() const; |
98 | 99 | ||
99 | static void exit(); | 100 | static void exit(); |
100 | protected: | 101 | protected: |
101 | virtual void run() = 0; | 102 | virtual void run() = 0; |
102 | 103 | ||
103 | private: | 104 | private: |