From 8e676db633aa8888c8408a91ef219d2261ef42e2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 17 Oct 2013 18:42:14 +0200 Subject: Thread/Thread: replacement library for GThread --- src/DecoderControl.hxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/DecoderControl.hxx') 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 @@ -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. -- cgit v1.2.3