mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-06 15:49:35 +03:00
Fix a race condition in sqlite3_initialize(). (CVS 5310)
FossilOrigin-Name: 70b2ed2afcf1757d1c58f3a83dad4a5fb226ae63
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
*************************************************************************
|
||||
** Internal interface definitions for SQLite.
|
||||
**
|
||||
** @(#) $Id: sqliteInt.h,v 1.729 2008/06/25 17:19:01 danielk1977 Exp $
|
||||
** @(#) $Id: sqliteInt.h,v 1.730 2008/06/26 08:29:34 danielk1977 Exp $
|
||||
*/
|
||||
#ifndef _SQLITEINT_H_
|
||||
#define _SQLITEINT_H_
|
||||
@@ -1734,12 +1734,6 @@ typedef struct {
|
||||
** Structure containing global configuration data for the SQLite library.
|
||||
**
|
||||
** This structure also contains some state information.
|
||||
**
|
||||
** The Sqlite3Config.isInit variable indicates whether or not
|
||||
** sqlite3_initialize() has already been called or not. Initially, isInit
|
||||
** is 0. While sqlite3_initialize() is running, it is set to 1. After
|
||||
** sqlite3_initialize has successfully run, the Sqlite3Config.isInit variable
|
||||
** is set to 2. Calling sqlite3_shutdown() resets the value to 0.
|
||||
*/
|
||||
struct Sqlite3Config {
|
||||
int bMemstat; /* True to enable memory status */
|
||||
@@ -1756,7 +1750,9 @@ struct Sqlite3Config {
|
||||
void *pPage; /* Page cache memory */
|
||||
int szPage; /* Size of each page in pPage[] */
|
||||
int nPage; /* Number of pages in pPage[] */
|
||||
int isInit; /* Initialization state */
|
||||
int isInit; /* True after initialization has finished */
|
||||
int isMallocInit; /* True after malloc is initialized */
|
||||
sqlite3_mutex *pInitMutex; /* Mutex used by sqlite3_initialize() */
|
||||
};
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user