diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 18:42:14 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 19:29:47 +0200 |
commit | 8e676db633aa8888c8408a91ef219d2261ef42e2 (patch) | |
tree | 9e61e37ab5d181e90e89c5d4ced99c3434b3976c /src/DecoderControl.hxx | |
parent | f6d74012b7a583bddf2e3b824193ade91fe09ce7 (diff) | |
download | mpd-8e676db633aa8888c8408a91ef219d2261ef42e2.tar.gz mpd-8e676db633aa8888c8408a91ef219d2261ef42e2.tar.xz mpd-8e676db633aa8888c8408a91ef219d2261ef42e2.zip |
Thread/Thread: replacement library for GThread
Diffstat (limited to '')
-rw-r--r-- | src/DecoderControl.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/DecoderControl.hxx b/src/DecoderControl.hxx index a787242e1..07ec71ea2 100644 --- a/src/DecoderControl.hxx +++ b/src/DecoderControl.hxx @@ -24,6 +24,7 @@ #include "AudioFormat.hxx" #include "thread/Mutex.hxx" #include "thread/Cond.hxx" +#include "thread/Thread.hxx" #include "util/Error.hxx" #include <assert.h> @@ -37,7 +38,6 @@ struct Song; class MusicBuffer; class MusicPipe; -typedef struct _GThread GThread; enum class DecoderState : uint8_t { STOP = 0, @@ -54,9 +54,10 @@ enum class DecoderState : uint8_t { }; struct decoder_control { - /** the handle of the decoder thread, or NULL if the decoder - thread isn't running */ - GThread *thread; + /** + * The handle of the decoder thread. + */ + Thread thread; /** * This lock protects #state and #command. |