OLD | NEW |
| 1 NOTE (2012-11-29): |
| 2 |
| 3 The functionality implemented by this extension has been superseded |
| 4 by WAL-mode. This module is no longer supported or maintained. The |
| 5 code is retained for historical reference only. |
| 6 |
| 7 ------------------------------------------------------------------------------ |
1 | 8 |
2 Normally, when SQLite writes to a database file, it waits until the write | 9 Normally, when SQLite writes to a database file, it waits until the write |
3 operation is finished before returning control to the calling application. | 10 operation is finished before returning control to the calling application. |
4 Since writing to the file-system is usually very slow compared with CPU | 11 Since writing to the file-system is usually very slow compared with CPU |
5 bound operations, this can be a performance bottleneck. This directory | 12 bound operations, this can be a performance bottleneck. This directory |
6 contains an extension that causes SQLite to perform all write requests | 13 contains an extension that causes SQLite to perform all write requests |
7 using a separate thread running in the background. Although this does not | 14 using a separate thread running in the background. Although this does not |
8 reduce the overall system resources (CPU, disk bandwidth etc.) at all, it | 15 reduce the overall system resources (CPU, disk bandwidth etc.) at all, it |
9 allows SQLite to return control to the caller quickly even when writing to | 16 allows SQLite to return control to the caller quickly even when writing to |
10 the database, eliminating the bottleneck. | 17 the database, eliminating the bottleneck. |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 new versions of each of the following: | 161 new versions of each of the following: |
155 | 162 |
156 static void async_mutex_enter(int eMutex); | 163 static void async_mutex_enter(int eMutex); |
157 static void async_mutex_leave(int eMutex); | 164 static void async_mutex_leave(int eMutex); |
158 static void async_cond_wait(int eCond, int eMutex); | 165 static void async_cond_wait(int eCond, int eMutex); |
159 static void async_cond_signal(int eCond); | 166 static void async_cond_signal(int eCond); |
160 static void async_sched_yield(void); | 167 static void async_sched_yield(void); |
161 | 168 |
162 The functionality required of each of the above functions is described | 169 The functionality required of each of the above functions is described |
163 in comments in sqlite3async.c. | 170 in comments in sqlite3async.c. |
164 | |
OLD | NEW |