/ All files named "src/mutex_unix.c"
Login

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

History for src/mutex_unix.c

2020-07-29
16:18
[a2503d11] part of check-in [a80ae2c9] Dozens and dozens of typo fixes in comments. This change adds no value to the end product and is disruptive, so it is questionable whether or not it will ever land on trunk. (check-in: [a80ae2c9] user: drh branch: typos, size: 12647)
2020-06-19
11:34
[dd2b3f1c] part of check-in [7bb08b1b] Refactoring various names. No changes in the resulting machine code. (check-in: [7bb08b1b] user: drh branch: trunk, size: 12648)
2019-02-08
20:55
[38abc2b7] part of check-in [df66fec9] Use a fast compiler-provided memory barrier exclusively, if such a memory barrier is available. (check-in: [df66fec9] user: drh branch: faster-memory-barrier, size: 12694)
2018-02-17
07:38
[aaf9ebc3] part of check-in [f53b8a57] Fix a data race causing a tsan complaint with SQLITE_ENABLE_API_ARMOR builds on unix. The race condition is not dangerous in practice, it just upsets tsan. (check-in: [f53b8a57] user: dan branch: trunk, size: 12650)
2017-08-27
10:55
[78d1d635] part of check-in [c93298d5] Instrumentation and changes in an effort to reduce thread contention. (check-in: [c93298d5] user: drh branch: reduced-thread-contention, size: 12703)
2017-02-14
23:58
[68ced9b5] part of check-in [80481754] Experimental enhancements to mutex debugging. (check-in: [80481754] user: mistachkin branch: mutexDbg2, size: 13003)
2016-08-04
14:08
[543aab0a] part of check-in [491f1ef3] Add extra logging calls to this branch. (check-in: [491f1ef3] user: dan branch: debug, size: 11959)
2016-07-30
03:33
[5cbf63bc] part of check-in [92b9fead] A new version of the slow mutex log that uses gettimeofday() instead of trying to access the hardware timer. (check-in: [92b9fead] user: drh branch: debug, size: 12169)
2016-07-29
14:31
[3a24b5f2] part of check-in [e60cb6d8] Enhance a debugging log message to better identify a mutex. (check-in: [e60cb6d8] user: dan branch: debug, size: 12031)
14:10
[9af77da8] part of check-in [33c7ef7a] Add calls to sqlite3_log() when sqlite3_mutex_enter() takes more than 100,000 CPU cycles. (check-in: [33c7ef7a] user: drh branch: debug, size: 11839)
2015-12-23
16:42
[27bb6cc4] part of check-in [5d44d4a6] Fix some harmless gcc compiler warnings. Mostly in fts5, but also two in the core code. (check-in: [5d44d4a6] user: dan branch: trunk, size: 12373)
2015-11-21
17:27
[fc54f25b] part of check-in [198d191b] Fix over-length source code lines. No logic changes. (check-in: [198d191b] user: drh branch: trunk, size: 12267)
2015-10-15
21:12
[77d84839] part of check-in [a447cf90] Merge updates from trunk. (check-in: [a447cf90] user: mistachkin branch: mutexInitSimpleCmpSwap, size: 13191)
2015-09-26
03:23
[a94b46f3] part of check-in [b89495ae] Expand the header comment to clarify the purpose for the sqlite3MemoryBarrier() function. (check-in: [b89495ae] user: drh branch: trunk, size: 12273)
2015-09-12
18:57
[8cfa6e83] part of check-in [334720c0] Import common changes from the mutex initialization branch. (check-in: [334720c0] user: mistachkin branch: trunk, size: 12164)
2015-09-11
05:06
[a72043f2] part of check-in [f6a8f577] 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: [f6a8f577] user: mistachkin branch: mutexInitCmpSwap, size: 13082)
2015-09-06
10:31
[7762c8ec] part of check-in [47dc24bd] Improved memory barrier that should work with MinGW on older versions of Windows. (check-in: [47dc24bd] user: drh branch: trunk, size: 12140)
02:51
[c3f415eb] part of check-in [11a9a786] Add a memory barrier to the mutex initialization logic, try to work around an issue reported by WebKit. (check-in: [11a9a786] user: drh branch: trunk, size: 12139)
2015-07-03
21:38
[b0d28008] part of check-in [b202e2a1] Add static mutexes for use by the built-in / third-party VFSs and use the built-in VFS mutex where appropriate. (check-in: [b202e2a1] user: mistachkin branch: trunk, size: 11905)
2015-02-13
16:36
[5cf67646] part of check-in [823ad40c] Improvements to SQLITE_ENABLE_API_ARMOR. (check-in: [823ad40c] user: drh branch: trunk, size: 11710)
2014-10-24
00:35
[551e2f25] part of check-in [c297a84b] Add the SQLITE_ENABLE_API_ARMOR compile-time option. This is a work in progress and is not yet completely functional. (check-in: [c297a84b] user: drh branch: api-armor, size: 11587)
2014-08-15
22:37
[837e3d96] part of check-in [c8ade949] Aborted merge. (check-in: [c8ade949] user: numist branch: obsolete, size: 11389)
2014-05-09
11:15
[1b10d541] part of check-in [ee0ab09c] Add new static mutex SQLITE_MUTEX_STATIC_APP3. (check-in: [ee0ab09c] user: dan branch: threads, size: 11511)
2014-05-03
12:00
[56e22c1b] part of check-in [13686035] Add two new static mutexes, SQLITE_MUTEX_STATIC_APP1 and _APP2, for use by the application program. First intended use is in test programs for the memory allocation logic where one does not want to allocating a _FAST or _RECURSIVE mutex since that would involve using the memory allocation system under test. (check-in: [13686035] user: drh branch: threads, size: 11446)
2012-01-04
12:57
[c3a4e00f] part of check-in [e9d05cbb] Fix typos and comments and make minor changes to a few function names, as suggested by readership. (check-in: [e9d05cbb] user: drh branch: trunk, size: 11316)
2011-01-26
07:25
[b4f4e923] part of check-in [456bd5c6] Update mutex1.test so that it works with the memsubsys1 permutation (pagecache memory). Change a few instances of SQLITE_MUTEX_STATIC_LRU2 in comments and test code to STATIC_PMEM. (check-in: [456bd5c6] user: dan branch: trunk, size: 11315)
2010-08-10
07:12
[abb8c98a] part of check-in [e82e32bd] Changes to debugging code in mutex_unix.c and mutex_w32.c to make an assert() statement threadsafe. (check-in: [e82e32bd] user: dan branch: trunk, size: 11315)
2010-06-02
05:53
[cf84466b] part of check-in [e7073e23] Add some 'const' markers to static data that is really constant. (check-in: [e7073e23] user: dan branch: trunk, size: 11244)
2010-05-13
20:19
[becb8c4e] part of check-in [e823c60c] Make debugging elements of the sqlite3_mutex object volatile and make them only appear when compiling with SQLITE_DEBUG. Ticket [51914f6acd2cb462]. (check-in: [e823c60c] user: drh branch: trunk, size: 11232)
2009-11-10
01:30
[04a25238] part of check-in [f6c045f6] Remove the obsolete "$Id:$" RCS identifier strings from the source code. (check-in: [f6c045f6] user: drh branch: trunk, size: 10702)
2009-08-17
15:31
[aff26c77] part of check-in [32509bc7] More documentation and comment updates for sqlite3_initialize/shutdown interface changes to handle failures. (check-in: [32509bc7] user: shane branch: trunk, size: 10763)
2008-12-08
18:19
[2f936339] part of check-in [73c7302c] The amalgamation now compiles cleanly on GCC with options -pedantic-errors -Wno-long-long. (CVS 5991) (check-in: [73c7302c] user: drh branch: trunk, size: 10731)
2008-11-17
19:18
[3b1c895a] part of check-in [8009220c] Modifications to avoid unsigned/signed comparisons in various files. (CVS 5914) (check-in: [8009220c] user: danielk1977 branch: trunk, size: 10720)
08:05
[0c256ff1] part of check-in [f45a1493] Added support for vxworks >= 6.4; RTP mode tested, kernel mode untested. (CVS 5910) (check-in: [f45a1493] user: chw branch: trunk, size: 10734)
2008-07-16
12:33
[29049a61] part of check-in [9af2514c] Fix a bug in the HOMEGROWN_RECURSIVE_MUTEX implementation for unix. Ticket #3224. (CVS 5420) (check-in: [9af2514c] user: drh branch: trunk, size: 10703)
2008-06-19
16:07
[c1526811] part of check-in [7d38da3e] Fix some minor compile problems. (CVS 5248) (check-in: [7d38da3e] user: drh branch: trunk, size: 10700)
08:51
[630a3860] part of check-in [9cd7f866] Shuffle some of the mutex related documentation in sqlite.h.in to match the new sqlite3_mutex_methods based API. (CVS 5244) (check-in: [9cd7f866] user: danielk1977 branch: trunk, size: 10682)
2008-06-18
09:45
[469a35c1] part of check-in [262baee9] Add some test infrastructure and cases for the new mutex api. (CVS 5230) (check-in: [262baee9] user: danielk1977 branch: trunk, size: 10682)
2008-06-17
17:21
[74a67559] part of check-in [59728363] Change the mutex interface to be pluggable. This is an incremental checkin, there are still changes to come. (CVS 5227) (check-in: [59728363] user: danielk1977 branch: trunk, size: 10683)
2008-06-13
18:24
[28588d08] part of check-in [a03c5af1] 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: [a03c5af1] user: drh branch: trunk, size: 10424)
2008-03-29
12:47
[466d2037] part of check-in [d6a34d98] eliminate compile-time warnings related to missing field initializations (CVS 4936) (check-in: [d6a34d98] user: rse branch: trunk, size: 10230)
2008-03-26
18:34
[c5427552] part of check-in [8c2f6952] Changes to delay freeing buffers associated with vdbe memory cells until either sqlite3_finalize() or sqlite3_release_memory() is called. (CVS 4922) (check-in: [8c2f6952] user: danielk1977 branch: trunk, size: 10065)
2007-11-28
14:04
[a6e11194] part of check-in [542e11f9] Reorganize the code for the homegrown recursive mutexes. Fix a place in the previous check-in where the #ifdef label was incorrect. Ticket #2804. (CVS 4576) (check-in: [542e11f9] user: drh branch: trunk, size: 10021)
13:55
[94da6981] part of check-in [80299eeb] Clarify the conditions under which homegrown recursive mutexes work (they require a coherent cache) and only enable them if there is an explicit #define so as to avoid accidental use on platforms that do not meet the constraints. Ticket #2805. (CVS 4575) (check-in: [80299eeb] user: drh branch: trunk, size: 10015)
00:51
[69e996b7] part of check-in [f366a776] Add an implementation of recursive mutexes for unix systems that lack pthreads recursive mutexes (ex: Solaris 2.6). Modern unix systems continue to use the recursive mutexes provided by pthreads. (CVS 4573) (check-in: [f366a776] user: drh branch: trunk, size: 9549)
2007-08-28
22:24
[ff776502] part of check-in [967ab229] Clean up the locking in the btree logic. (CVS 4316) (check-in: [967ab229] user: drh branch: trunk, size: 7624)
16:34
Added: [84ae0344] part of check-in [fc5cd71a] Break up the mutex implementation into separate source files, one each for unix, w32, and os2. (CVS 4312) (check-in: [fc5cd71a] user: drh branch: trunk, size: 7171)