mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Added assert to verify winMutex system is inited before "static" mutexes are used. (CVS 6701)
FossilOrigin-Name: b126013b5a1d6526810139d19acbec7fd0ab8168
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*************************************************************************
|
||||
** This file contains the C functions that implement mutexes for win32
|
||||
**
|
||||
** $Id: mutex_w32.c,v 1.16 2009/06/01 17:06:08 shane Exp $
|
||||
** $Id: mutex_w32.c,v 1.17 2009/06/01 17:10:22 shane Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -175,6 +175,7 @@ static sqlite3_mutex *winMutexAlloc(int iType){
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
assert( winMutex_isInit==1 );
|
||||
assert( iType-2 >= 0 );
|
||||
assert( iType-2 < sizeof(winMutex_staticMutexes)/sizeof(winMutex_staticMutexes[0]) );
|
||||
p = &winMutex_staticMutexes[iType-2];
|
||||
|
Reference in New Issue
Block a user