2013-09-26 17:14:40 +02:00

25 lines
804 B
Plaintext

$NetBSD: patch-bg,v 1.5 2012/09/02 06:43:40 ryoon Exp $
--- mozilla/storage/src/SQLiteMutex.h.orig 2012-08-25 00:31:30.000000000 +0000
+++ mozilla/storage/src/SQLiteMutex.h
@@ -108,15 +108,19 @@ public:
void assertCurrentThreadOwns()
{
NS_ASSERTION(mMutex, "No mutex associated with this wrapper!");
+#if 0 /* XXX tnn: this breaks the debug build. */
NS_ASSERTION(sqlite3_mutex_held(mMutex),
"Mutex is not held, but we expect it to be!");
+#endif
}
void assertNotCurrentThreadOwns()
{
NS_ASSERTION(mMutex, "No mutex associated with this wrapper!");
+#if 0 /* XXX tnn: this breaks the debug build. */
NS_ASSERTION(sqlite3_mutex_notheld(mMutex),
"Mutex is held, but we expect it to not be!");
+#endif
}
#endif // ifndef DEBUG