mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Add a C-source spell-checking facility. make misspell (on Nix)
FossilOrigin-Name: 26c1bb4bd9e9f56613c3aa87407a7f562fd4ebde5bfd6dece02078001d9a45f8
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
/*
|
||||
** The sqlite3_mutex.id, sqlite3_mutex.nRef, and sqlite3_mutex.owner fields
|
||||
** are necessary under two condidtions: (1) Debug builds and (2) using
|
||||
** are necessary under two conditions: (1) Debug builds and (2) using
|
||||
** home-grown mutexes. Encapsulate these conditions into a single #define.
|
||||
*/
|
||||
#if defined(SQLITE_DEBUG) || defined(SQLITE_HOMEGROWN_RECURSIVE_MUTEX)
|
||||
@@ -64,7 +64,7 @@ struct sqlite3_mutex {
|
||||
** there might be race conditions that can cause these routines to
|
||||
** deliver incorrect results. In particular, if pthread_equal() is
|
||||
** not an atomic operation, then these routines might delivery
|
||||
** incorrect results. On most platforms, pthread_equal() is a
|
||||
** incorrect results. On most platforms, pthread_equal() is a
|
||||
** comparison of two integers and is therefore atomic. But we are
|
||||
** told that HPUX is not such a platform. If so, then these routines
|
||||
** will not always work correctly on HPUX.
|
||||
@@ -146,7 +146,7 @@ static int pthreadMutexEnd(void){ return SQLITE_OK; }
|
||||
**
|
||||
** Note that if one of the dynamic mutex parameters (SQLITE_MUTEX_FAST
|
||||
** or SQLITE_MUTEX_RECURSIVE) is used then sqlite3_mutex_alloc()
|
||||
** returns a different mutex on every call. But for the static
|
||||
** returns a different mutex on every call. But for the static
|
||||
** mutex types, the same mutex is returned on every call that has
|
||||
** the same type number.
|
||||
*/
|
||||
@@ -257,7 +257,7 @@ static void pthreadMutexEnter(sqlite3_mutex *p){
|
||||
** is atomic - that it cannot be deceived into thinking self
|
||||
** and p->owner are equal if p->owner changes between two values
|
||||
** that are not equal to self while the comparison is taking place.
|
||||
** This implementation also assumes a coherent cache - that
|
||||
** This implementation also assumes a coherent cache - that
|
||||
** separate processes cannot read different values from the same
|
||||
** address at the same time. If either of these two conditions
|
||||
** are not met, then the mutexes will fail and problems will result.
|
||||
@@ -300,7 +300,7 @@ static int pthreadMutexTry(sqlite3_mutex *p){
|
||||
** is atomic - that it cannot be deceived into thinking self
|
||||
** and p->owner are equal if p->owner changes between two values
|
||||
** that are not equal to self while the comparison is taking place.
|
||||
** This implementation also assumes a coherent cache - that
|
||||
** This implementation also assumes a coherent cache - that
|
||||
** separate processes cannot read different values from the same
|
||||
** address at the same time. If either of these two conditions
|
||||
** are not met, then the mutexes will fail and problems will result.
|
||||
|
Reference in New Issue
Block a user