Files
pkgsrc-ng/www/firefox/patches/patch-storage_SQLiteMutex.h
2016-01-21 23:42:40 +01:00

25 lines
711 B
C

$NetBSD: patch-storage_SQLiteMutex.h,v 1.1 2015/09/23 06:44:42 ryoon Exp $
--- storage/SQLiteMutex.h.orig 2015-08-24 21:53:07.000000000 +0000
+++ storage/SQLiteMutex.h
@@ -107,15 +107,19 @@ public:
void assertCurrentThreadOwns()
{
NS_ASSERTION(mMutex, "No mutex associated with this wrapper!");
+#if 0
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
NS_ASSERTION(sqlite3_mutex_notheld(mMutex),
"Mutex is held, but we expect it to not be!");
+#endif
}
#endif // ifndef DEBUG