/ Check-in [e9d064bd]
Login

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

Overview
Comment:Make sure the threadsOverrideEachOthersLocks variable is only referenced by linux systems on a threadsafe compile.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e9d064bd9318c2bc9248df948f71fd30f24525eb
User & Date: drh 2009-09-10 19:20:03
Context
2009-09-10
20:23
Fixed some warnings and an assert in the WINCE code when compiling under MSVC. check-in: f42ec993 user: shane tags: trunk
19:20
Make sure the threadsOverrideEachOthersLocks variable is only referenced by linux systems on a threadsafe compile. check-in: e9d064bd user: drh tags: trunk
19:09
Cleanup of warnings on MSVC build. check-in: 5588cc96 user: shane tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/os_unix.c.

   921    921           assert( openList==pOpen );
   922    922           openList = pOpen->pNext;
   923    923         }
   924    924         if( pOpen->pNext ){
   925    925           assert( pOpen->pNext->pPrev==pOpen );
   926    926           pOpen->pNext->pPrev = pOpen->pPrev;
   927    927         }
          928  +#if SQLITE_THREADSAFE && defined(__linux__)
   928    929         assert( !pOpen->pUnused || threadsOverrideEachOthersLocks==0 );
          930  +#endif
   929    931   
   930    932         /* If pOpen->pUnused is not null, then memory and file-descriptors
   931    933         ** are leaked.
   932    934         **
   933    935         ** This will only happen if, under Linuxthreads, the user has opened
   934    936         ** a transaction in one thread, then attempts to close the database
   935    937         ** handle from another thread (without first unlocking the db file).