aboutsummaryrefslogtreecommitdiffstats
path: root/src/db_lock.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-02-02 17:52:11 +0100
committerMax Kellermann <max@duempel.org>2012-02-02 17:59:51 +0100
commit837bd79b20d4b9b8525a42999a9d1911f8980aa4 (patch)
tree6fd905d907929d00296a92b4784ed2cd561523b4 /src/db_lock.c
parent3edd4a24afe295eaf4b811a265318338b6690af2 (diff)
downloadmpd-837bd79b20d4b9b8525a42999a9d1911f8980aa4.tar.gz
mpd-837bd79b20d4b9b8525a42999a9d1911f8980aa4.tar.xz
mpd-837bd79b20d4b9b8525a42999a9d1911f8980aa4.zip
db_lock: add assertions
Diffstat (limited to 'src/db_lock.c')
-rw-r--r--src/db_lock.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db_lock.c b/src/db_lock.c
index 3aaba4dc2..88adc3614 100644
--- a/src/db_lock.c
+++ b/src/db_lock.c
@@ -21,3 +21,7 @@
#include "db_lock.h"
GStaticMutex db_mutex = G_STATIC_MUTEX_INIT;
+
+#ifndef NDEBUG
+GThread *db_mutex_holder;
+#endif