db_lock: add assertions

This commit is contained in:
Max Kellermann
2012-02-02 17:52:11 +01:00
parent 3edd4a24af
commit 837bd79b20
2 changed files with 33 additions and 0 deletions

View File

@@ -21,3 +21,7 @@
#include "db_lock.h"
GStaticMutex db_mutex = G_STATIC_MUTEX_INIT;
#ifndef NDEBUG
GThread *db_mutex_holder;
#endif