Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
History for src/mutex.c
2024-09-11
| ||
12:17 | [06bcd9c3db] part of check-in [db702dd785] Disable the debug-use-only functions sqlite3_mutex_held() and sqlite3_mutex_notheld() when compiling with TSAN in as much as those routines cause TSAN to complain. Response to https://issues.chromium.org/issues/41427446. (check-in: [db702dd785] user: drh branch: trunk, size: 10187) | |
2023-10-15
| ||
13:36 | [1b4c7e5e36] part of check-in [dd766eeb59] Change 3 instance of #if SQLITE_ENABLE_API_ARMOR to #ifdef for consistency with how it is normally used. (check-in: [dd766eeb59] user: stephan branch: trunk, size: 9842) | |
2020-01-29
| ||
13:10 | [5e34097155] part of check-in [a9b2adc5d6] Add new memory barriers during initialization. (check-in: [a9b2adc5d6] user: drh branch: trunk, size: 9839) | |
2018-05-09
| ||
13:46 | [bae36f8af3] part of check-in [87f261f0cb] Make the internal dynamic string interface available to extensions using the new sqlite3_str object and its associated methods. This is mostly just a renaming of internal objects and methods to use external names, through there are a few small wrapper functions. (check-in: [87f261f0cb] user: drh branch: trunk, size: 9813) | |
2017-12-05
| ||
14:58 | [b021263554] part of check-in [0342ce510d] Fix a compilation problem when both SQLITE_ENABLE_MULTITHREADED_CHECKS and SQLITE_ENABLE_API_ARMOUR are defined. (check-in: [0342ce510d] user: dan branch: trunk, size: 9814) | |
2017-11-28
| ||
07:47 | [20172f2cc4] part of check-in [12a23c0a66] Use a symbolic constant instead of a literal (-1) to identify a warn-on-contention mutex. (check-in: [12a23c0a66] user: dan branch: multithreaded-checks, size: 9800) | |
2017-11-25
| ||
17:51 | [38addb10f9] part of check-in [a66886ac13] Add experimental feature to detect threading bugs in apps that use SQLITE_CONFIG_MULTITHREADED. Enabled at compile time using SQLITE_ENABLE_MULTITHREADED_CHECKS. (check-in: [a66886ac13] user: dan branch: multithreaded-checks, size: 9179) | |
2017-02-15
| ||
00:52 | [3e57053d0a] part of check-in [82ef47ea88] Another compilation fix for POSIX. (check-in: [82ef47ea88] user: mistachkin branch: mutexDbg2, size: 5932) | |
00:45 | [3496ef4436] part of check-in [79057716d9] Make fine time granularity work on POSIX. (check-in: [79057716d9] user: mistachkin branch: mutexDbg2, size: 5908) | |
2017-02-14
| ||
23:58 | [64604d2b97] part of check-in [804817549c] Experimental enhancements to mutex debugging. (check-in: [804817549c] user: mistachkin branch: mutexDbg2, size: 5917) | |
2015-09-23
| ||
16:33 | [40dc52f752] part of check-in [8d69983dc2] Correct superfluous whitespace difference. No functional changes. (check-in: [8d69983dc2] user: mistachkin branch: mutexInitSimpleCmpSwap, size: 5177) | |
16:24 | [7eb31a23d2] part of check-in [da0587c522] Simplify thread-safety of mutex initialization. (check-in: [da0587c522] user: mistachkin branch: mutexInitSimpleCmpSwap, size: 5176) | |
2015-09-13
| ||
18:45 | [b0fbea2cda] part of check-in [c9400ff167] Experimental changes to avoid recusrively calling xMutexInit. (check-in: [c9400ff167] user: mistachkin branch: mutexInitCmpSwap, size: 5950) | |
2015-09-12
| ||
18:57 | [8e45800ee7] part of check-in [334720c017] Import common changes from the mutex initialization branch. (check-in: [334720c017] user: mistachkin branch: trunk, size: 4875) | |
04:22 | [a5c7d63f59] part of check-in [de3fa51e93] Fix comments. (check-in: [de3fa51e93] user: mistachkin branch: mutexInitCmpSwap, size: 5848) | |
04:19 | [87bd895b69] part of check-in [1a97bc81cc] Specifying an invalid mutex implementation (via SQLITE_CONFIG_MUTEX) should cause the default one to be used instead. (check-in: [1a97bc81cc] user: mistachkin branch: mutexInitCmpSwap, size: 5835) | |
03:35 | [58c1a764c3] part of check-in [7562f1fbed] Add more asserts to the mutex subsystem. (check-in: [7562f1fbed] user: mistachkin branch: mutexInitCmpSwap, size: 5110) | |
2015-09-11
| ||
05:06 | [de4293e5fe] part of check-in [f6a8f57795] Enhance mutex initialization to prevent possible race conditions between sqlite3_initialize() and sqlite3_config(). Also, re-check sqlite3GlobalConfig.isInit after the mutex subsystem has been initialized. (check-in: [f6a8f57795] user: mistachkin branch: mutexInitCmpSwap, size: 4630) | |
2015-09-06
| ||
02:51 | [a39809c6c3] part of check-in [11a9a786ec] Add a memory barrier to the mutex initialization logic, try to work around an issue reported by WebKit. (check-in: [11a9a786ec] user: drh branch: trunk, size: 4364) | |
2015-06-15
| ||
14:43 | [529e95739f] part of check-in [b0badb9902] Fix harmless compiler warnings. (check-in: [b0badb9902] user: drh branch: trunk, size: 4336) | |
2014-10-27
| ||
22:06 | [19bf9acba6] part of check-in [7857d27caa] Add special handling for static mutexes in sqlite3_mutex_alloc() when automatic calls to sqlite3_initialize() are enabled. (check-in: [7857d27caa] user: mistachkin branch: trunk, size: 4193) | |
2014-08-15
| ||
22:37 | [1439b0cebb] part of check-in [c8ade949d4] Aborted merge. (check-in: [c8ade949d4] user: numist branch: obsolete, size: 4224) | |
2014-05-03
| ||
13:53 | [84a073c9a2] part of check-in [f49ba1c926] Get SQLITE_MUTEX_STATIC_APP1 and _APP2 working for the debugMutex implementation. (check-in: [f49ba1c926] user: drh branch: threads, size: 4127) | |
2012-01-04
| ||
12:57 | [d3b66a5693] part of check-in [e9d05cbb76] Fix typos and comments and make minor changes to a few function names, as suggested by readership. (check-in: [e9d05cbb76] user: drh branch: trunk, size: 4097) | |
2011-05-10
| ||
14:52 | [d67ea9666d] part of check-in [489c453d4e] Provide the ability to specify an alternative mutex subsystem at compile-time. - This check-in should have gone on the trunk, not on the 3.7.6 branch. (check-in: [489c453d4e] user: drh branch: mistake, size: 4536) | |
2010-06-02
| ||
05:53 | [6949180803] part of check-in [e7073e23b8] Add some 'const' markers to static data that is really constant. (check-in: [e7073e23b8] user: dan branch: trunk, size: 4087) | |
2010-05-05
| ||
00:05 | [e2358d8f9a] part of check-in [451fd17575] When the in single-threaded mode, the sqlite3_mutex_alloc() interface still returns a non-NULL value. The mutex doesn't do anything, but it tests non-NULL. This way, extensions (or VFSes) that use sqlite3_mutex_alloc() can tell the difference between an OOM error and mutexes being disabled. (check-in: [451fd17575] user: drh branch: trunk, size: 4081) | |
2010-05-01
| ||
11:19 | [c044125136] part of check-in [64840a3caf] Fix the sqlite3_mutex_alloc() interface to return NULL (not segfault) when operating in threadsafe mode. (This is a general-purpose bug fix which really ought to be ported to trunk.) (check-in: [64840a3caf] user: drh branch: wal, size: 4097) | |
2009-11-10
| ||
01:30 | [581a272e09] part of check-in [f6c045f649] Remove the obsolete "$Id:$" RCS identifier strings from the source code. (check-in: [f6c045f649] user: drh branch: trunk, size: 4047) | |
2009-09-30
| ||
04:28 | [828a40bc7b] part of check-in [b733e939f7] Change a couple of comments to use "SQLITE_MUTEX_OMIT" instead of OMIT_MUTEX. (check-in: [b733e939f7] user: dan branch: trunk, size: 4104) | |
2009-09-10
| ||
22:30 | [525d60fc22] part of check-in [3ea1043443] Omit the mutexIsInit test variable when mutexes are disabled. (check-in: [3ea1043443] user: drh branch: trunk, size: 4104) | |
17:45 | [60cd6d854e] part of check-in [1183c53357] Add assert() statement to verify that new mutexes are not allocated when the mutex subsystem is uninitialized. (check-in: [1183c53357] user: drh branch: trunk, size: 4067) | |
2009-07-16
| ||
18:21 | [73899d1585] part of check-in [9452517981] Code simplifications and comment improvements in support of structural coverage testing. (CVS 6899) (check-in: [9452517981] user: drh branch: trunk, size: 3615) | |
2009-02-17
| ||
16:29 | [5e2ea0e049] part of check-in [79431c58d9] Allow sqlite3_shutdown() to be called by a process before sqlite3_initialize() is. Prior to this commit such a call could segfault. (CVS 6296) (check-in: [79431c58d9] user: danielk1977 branch: trunk, size: 4171) | |
2008-10-07
| ||
15:25 | [e9cb5fbe94] part of check-in [02a12eb1cf] Remove the SQLITE_MUTEX_APPDEF compile-time option. The SQLITE_THREADSAFE=0 option always removes all mutex code. For application-defined mutexes only, use SQLITE_THREADSAFE=1 with SQLITE_MUTEX_NOOP=1. Ticket #3421. (CVS 5779) (check-in: [02a12eb1cf] user: drh branch: trunk, size: 4112) | |
2008-09-01
| ||
18:34 | [81174f6005] part of check-in [573d92abb9] Begin adding support for the SQLITE_OMIT_WSD macro. Some (many) WSD variables still need wrappers added to them. (CVS 5652) (check-in: [573d92abb9] user: danielk1977 branch: trunk, size: 7715) | |
2008-06-19
| ||
08:51 | [a485a0eac8] part of check-in [9cd7f8669a] Shuffle some of the mutex related documentation in sqlite.h.in to match the new sqlite3_mutex_methods based API. (CVS 5244) (check-in: [9cd7f8669a] user: danielk1977 branch: trunk, size: 7601) | |
2008-06-18
| ||
18:57 | [67393ac4e8] part of check-in [42a2a8f493] Remove public APIs sqlite3_mutex_init() and sqlite3_mutex_end(). This commit only changes the code, documentation is not updated yet. (CVS 5238) (check-in: [42a2a8f493] user: danielk1977 branch: trunk, size: 7601) | |
18:08 | [8d8f3cdd4b] part of check-in [8b23b71944] Add a call to sqlite3_initialize() to sqlite3_mutex_alloc() (CVS 5236) (check-in: [8b23b71944] user: danielk1977 branch: trunk, size: 7607) | |
17:09 | [bcd07a2903] part of check-in [5059644c4b] Implement the 'CONFIG_SINGLETHREAD' and 'CONFIG_MULTITHREAD' configuration modes. (CVS 5234) (check-in: [5059644c4b] user: danielk1977 branch: trunk, size: 7532) | |
09:45 | [890b83ccf1] part of check-in [262baee995] Add some test infrastructure and cases for the new mutex api. (CVS 5230) (check-in: [262baee995] user: danielk1977 branch: trunk, size: 7272) | |
2008-06-17
| ||
18:57 | [d367b079d6] part of check-in [af1835bb5f] Add the SQLITE_CONFIG_MUTEX symbol for use with sqlite3_config(). (CVS 5228) (check-in: [af1835bb5f] user: danielk1977 branch: trunk, size: 7282) | |
17:21 | [cbdaeeed05] part of check-in [597283637b] Change the mutex interface to be pluggable. This is an incremental checkin, there are still changes to come. (CVS 5227) (check-in: [597283637b] user: danielk1977 branch: trunk, size: 6642) | |
2008-06-15
| ||
02:51 | [20f6ec9e2d] part of check-in [65fe7b62cf] Continuing work on the new memory allocation subsystem. Added routines for temporary memory allocation. Right the btree balance mechanism to only do one temporary allocation at a time. (CVS 5220) (check-in: [65fe7b62cf] user: drh branch: trunk, size: 4003) | |
2008-06-14
| ||
16:56 | [639881f679] part of check-in [f00305f4cd] Continuing progress on the new memory allocation subsystem. Added the sqlite3_mem_methods structure for defining new memory allocators at run-time. (CVS 5219) (check-in: [f00305f4cd] user: drh branch: trunk, size: 4004) | |
2008-06-13
| ||
18:24 | [1ff43a9f9a] part of check-in [a03c5af115] Progress toward implementation of sqlite3_config() and a rework of the mutex and memory allocation subsystems. This is an incremental check-in. (CVS 5218) (check-in: [a03c5af115] user: drh branch: trunk, size: 3984) | |
2008-03-26
| ||
18:34 | [d455f0876d] part of check-in [8c2f69521f] Changes to delay freeing buffers associated with vdbe memory cells until either sqlite3_finalize() or sqlite3_release_memory() is called. (CVS 4922) (check-in: [8c2f69521f] user: danielk1977 branch: trunk, size: 3834) | |
2007-09-10
| ||
16:13 | [3259f62c24] part of check-in [4dbeb915b3] Fix a problem in the noop-mutexes used for testing. (CVS 4420) (check-in: [4dbeb915b3] user: danielk1977 branch: trunk, size: 3834) | |
2007-08-28
| ||
16:34 | [40e5ba09d5] part of check-in [fc5cd71aef] Break up the mutex implementation into separate source files, one each for unix, w32, and os2. (CVS 4312) (check-in: [fc5cd71aef] user: drh branch: trunk, size: 3826) | |
2007-08-27
| ||
17:27 | [adbad5e138] part of check-in [5626ce0b5e] Modify sqlite3_release_memory() to use a global LRU list of pages. Untested. (CVS 4301) (check-in: [5626ce0b5e] user: danielk1977 branch: trunk, size: 19336) | |
2007-08-25
| ||
16:31 | [438d59f4ea] part of check-in [3d746343ad] Create a fresh pthread_mutexattr_t every time a recursive mutex is allocated. Ticket #2588. (CVS 4300) (check-in: [3d746343ad] user: drh branch: trunk, size: 19259) | |
16:21 | [676c77a921] part of check-in [7289079d6b] Documentation and comment updates in sqlite.h.in and mutex.c. (CVS 4299) (check-in: [7289079d6b] user: drh branch: trunk, size: 19478) | |
14:39 | [81e4c57389] part of check-in [1668284d15] Use recursive mutexes in pthreads. If the pthreads implementation does not support recursive mutexes, then you cannot compile SQLite with SQLITE_THREADSAFE=1. Ticket #2588. (CVS 4297) (check-in: [1668284d15] user: drh branch: trunk, size: 17755) | |
03:59 | [2337e3105e] part of check-in [7d24c3a5a7] Bug fix in the implementation of recursive mutexes using non-recursive pthreads mutexes. Ticket #2588. (CVS 4292) (check-in: [7d24c3a5a7] user: drh branch: trunk, size: 17159) | |
2007-08-24
| ||
20:46 | [81ca843fed] part of check-in [e144b81f69] New mutex implementation for both Unix and windows. (CVS 4291) (check-in: [e144b81f69] user: drh branch: trunk, size: 17158) | |
2007-08-22
| ||
02:56 | [9cf641f556] part of check-in [783e07d561] A complete run of quick.test with mutex debugging enabled. (CVS 4266) (check-in: [783e07d561] user: drh branch: trunk, size: 13356) | |
00:39 | [839c422693] part of check-in [1914044b88] Reenable the memory management logic. The quick.test script now runs with SQLITE_MEMDEBUG and SQLITE_ENABLE_MEMORY_MANAGEMENT. 7 minor errors. (CVS 4265) (check-in: [1914044b88] user: drh branch: trunk, size: 13411) | |
2007-08-21
| ||
10:44 | [56bd91271f] part of check-in [fbbd5bda54] Remove unnecessary #includes of "os.h". New mutex implementations. (CVS 4255) (check-in: [fbbd5bda54] user: drh branch: trunk, size: 13181) | |
2007-08-20
| ||
22:48 | [60051a86c4] part of check-in [1315bd8e12] Work toward multithreading support. Currently crashes quickly on a test. (CVS 4253) (check-in: [1315bd8e12] user: drh branch: trunk, size: 10357) | |
2007-08-17
| ||
01:14 | [67b2efd36a] part of check-in [4c1e9ffebe] Begin adding mutexes. Compiles without SQLITE_OMIT_SHARED_CACHE but we get an assertion fault on the shared cache testing. (CVS 4239) (check-in: [4c1e9ffebe] user: drh branch: trunk, size: 9870) | |
2007-08-16
| ||
19:40 | [679d5d9c99] part of check-in [160593dcc5] Change the design of the mutex interface to allow for both "fast" and "recursive" mutexes. (CVS 4238) (check-in: [160593dcc5] user: drh branch: trunk, size: 9830) | |
10:09 | [b4f963ebdc] part of check-in [77b1671351] More work on refactoring of malloc() interfaces. There are still many errors. (CVS 4233) (check-in: [77b1671351] user: danielk1977 branch: trunk, size: 7834) | |
2007-08-15
| ||
13:04 | Added: [667dae0de9] part of check-in [c0fa376979] Add initial implementations of mutex and memory subsystem modules. (CVS 4226) (check-in: [c0fa376979] user: drh branch: trunk, size: 7806) | |