Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Correct superfluous whitespace difference. No functional changes. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | mutexInitSimpleCmpSwap |
Files: | files | file ages | folders |
SHA1: |
8d69983dc2b94ca752259dcec360c32d |
User & Date: | mistachkin 2015-09-23 16:33:44.728 |
Context
2015-10-15
| ||
21:12 | Merge updates from trunk. (Leaf check-in: a447cf90dd user: mistachkin tags: mutexInitSimpleCmpSwap) | |
2015-09-23
| ||
16:33 | Correct superfluous whitespace difference. No functional changes. (check-in: 8d69983dc2 user: mistachkin tags: mutexInitSimpleCmpSwap) | |
16:24 | Simplify thread-safety of mutex initialization. (check-in: da0587c522 user: mistachkin tags: mutexInitSimpleCmpSwap) | |
Changes
Changes to src/mutex.c.
︙ | ︙ | |||
57 58 59 60 61 62 63 64 65 66 67 68 69 70 | 0, sqlite3GlobalConfig.mutex.xMutexAlloc)==0 ){ /* If the xMutexAlloc method has not been set, then the user did not ** install a mutex implementation via sqlite3_config() prior to ** sqlite3_initialize() being called. This block copies pointers to ** the default implementation into the sqlite3GlobalConfig structure. */ sqlite3_mutex_methods const *pFrom; if( sqlite3GlobalConfig.bCoreMutex ){ pFrom = sqlite3DefaultMutex(); }else{ pFrom = sqlite3NoopMutex(); } sqlite3MutexCopy(&sqlite3GlobalConfig.mutex, pFrom); sqlite3MemoryBarrier(); | > | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | 0, sqlite3GlobalConfig.mutex.xMutexAlloc)==0 ){ /* If the xMutexAlloc method has not been set, then the user did not ** install a mutex implementation via sqlite3_config() prior to ** sqlite3_initialize() being called. This block copies pointers to ** the default implementation into the sqlite3GlobalConfig structure. */ sqlite3_mutex_methods const *pFrom; if( sqlite3GlobalConfig.bCoreMutex ){ pFrom = sqlite3DefaultMutex(); }else{ pFrom = sqlite3NoopMutex(); } sqlite3MutexCopy(&sqlite3GlobalConfig.mutex, pFrom); sqlite3MemoryBarrier(); |
︙ | ︙ |