Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Make sqlite3_shutdown() a no-op if the library is not initialized. (CVS 5364) |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
d725d3bbcef6a8093a246f8ef5b11bf6 |
User & Date: | danielk1977 2008-07-08 12:02:35.000 |
Context
2008-07-08
| ||
12:07 | Extra coverage tests for btree.c. (CVS 5365) (check-in: 08334f6030 user: danielk1977 tags: trunk) | |
12:02 | Make sqlite3_shutdown() a no-op if the library is not initialized. (CVS 5364) (check-in: d725d3bbce user: danielk1977 tags: trunk) | |
10:19 | Improve coverage of btree.c. (CVS 5363) (check-in: f6d9cb835b user: danielk1977 tags: trunk) | |
Changes
Changes to src/main.c.
︙ | ︙ | |||
10 11 12 13 14 15 16 | ** ************************************************************************* ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** | | | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ** ************************************************************************* ** Main file for the SQLite library. The routines in this file ** implement the programmer interface to the library. Routines in ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** ** $Id: main.c,v 1.470 2008/07/08 12:02:35 danielk1977 Exp $ */ #include "sqliteInt.h" #include <ctype.h> #ifdef SQLITE_ENABLE_FTS3 # include "fts3.h" #endif |
︙ | ︙ | |||
126 127 128 129 130 131 132 | ** while any part of SQLite is otherwise in use in any thread. This ** routine is not threadsafe. Not by a long shot. */ int sqlite3_shutdown(void){ sqlite3_mutex_free(sqlite3Config.pInitMutex); sqlite3Config.pInitMutex = 0; sqlite3Config.isMallocInit = 0; | > | > > | > > | > | 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | ** while any part of SQLite is otherwise in use in any thread. This ** routine is not threadsafe. Not by a long shot. */ int sqlite3_shutdown(void){ sqlite3_mutex_free(sqlite3Config.pInitMutex); sqlite3Config.pInitMutex = 0; sqlite3Config.isMallocInit = 0; if( sqlite3Config.isInit ){ sqlite3_os_end(); } if( sqlite3Config.m.xShutdown ){ sqlite3MallocEnd(); } if( sqlite3Config.mutex.xMutexEnd ){ sqlite3MutexEnd(); } sqlite3Config.isInit = 0; return SQLITE_OK; } /* ** This API allows applications to modify the global configuration of ** the SQLite library at run-time. |
︙ | ︙ |