aboutsummaryrefslogtreecommitdiffstats
path: root/src/MixerInternal.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-04-16 23:46:36 +0200
committerMax Kellermann <max@duempel.org>2013-04-16 23:50:41 +0200
commit7b5f7c041b5926cb151e0d42cd602498bd697369 (patch)
tree7cb8473b081591f5fafb45ea398f4130c81190e9 /src/MixerInternal.hxx
parent8ce9b530933bb260dccd136b1f3cb553adac8ca3 (diff)
downloadmpd-7b5f7c041b5926cb151e0d42cd602498bd697369.tar.gz
mpd-7b5f7c041b5926cb151e0d42cd602498bd697369.tar.xz
mpd-7b5f7c041b5926cb151e0d42cd602498bd697369.zip
MixerInternal: use Mutex instead of GMutex
Diffstat (limited to '')
-rw-r--r--src/MixerInternal.hxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/MixerInternal.hxx b/src/MixerInternal.hxx
index f922a22bd..e421a34b4 100644
--- a/src/MixerInternal.hxx
+++ b/src/MixerInternal.hxx
@@ -22,8 +22,7 @@
#include "MixerPlugin.hxx"
#include "MixerList.hxx"
-
-#include <glib.h>
+#include "thread/Mutex.hxx"
class Mixer {
public:
@@ -33,7 +32,7 @@ public:
* This mutex protects all of the mixer struct, including its
* implementation, so plugins don't have to deal with that.
*/
- GMutex *mutex;
+ Mutex mutex;
/**
* Is the mixer device currently open?
@@ -49,7 +48,6 @@ public:
public:
Mixer(const mixer_plugin &_plugin)
:plugin(&_plugin),
- mutex(g_mutex_new()),
open(false),
failed(false) {}