/ Check-in [c2ed86f5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add a compile-time shutdown procedure to be called by sqlite3_shutdown() to undo the effects of the compile-time initialization procedure.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | nx-devkit
Files: files | file ages | folders
SHA1: c2ed86f5945662a4ddcdc7b303df3f64fb3bf17d
User & Date: drh 2011-12-13 01:34:21
Context
2011-12-13
02:41
When the multiplexor FileSize procedure fails to open the file, assume that the file is zero bytes in size. check-in: dc8118cd user: drh tags: nx-devkit
01:34
Add a compile-time shutdown procedure to be called by sqlite3_shutdown() to undo the effects of the compile-time initialization procedure. check-in: c2ed86f5 user: drh tags: nx-devkit
2011-12-12
20:01
Backport a minimal set of changes needed to get 8+3 filenames and the multiplexor shim playing well together. check-in: c4e2ce48 user: drh tags: nx-devkit
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/main.c.

   253    253   ** while any part of SQLite is otherwise in use in any thread.  This
   254    254   ** routine is not threadsafe.  But it is safe to invoke this routine
   255    255   ** on when SQLite is already shut down.  If SQLite is already shut down
   256    256   ** when this routine is invoked, then this routine is a harmless no-op.
   257    257   */
   258    258   int sqlite3_shutdown(void){
   259    259     if( sqlite3GlobalConfig.isInit ){
          260  +#ifdef SQLITE_EXTRA_SHUTDOWN
          261  +    void SQLITE_EXTRA_SHUTDOWN(void);
          262  +    SQLITE_EXTRA_SHUTDOWN();
          263  +#endif
   260    264       sqlite3_os_end();
   261    265       sqlite3_reset_auto_extension();
   262    266       sqlite3GlobalConfig.isInit = 0;
   263    267     }
   264    268     if( sqlite3GlobalConfig.isPCacheInit ){
   265    269       sqlite3PcacheShutdown();
   266    270       sqlite3GlobalConfig.isPCacheInit = 0;