Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: third_party/sqlite/src/ext/async/sqlite3async.h

Issue 901033002: Import SQLite 3.8.7.4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Chromium changes to support SQLite 3.8.7.4. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 1
2 #ifndef __SQLITEASYNC_H_ 2 #ifndef __SQLITEASYNC_H_
3 #define __SQLITEASYNC_H_ 1 3 #define __SQLITEASYNC_H_ 1
4 4
5 /* 5 /*
6 ** Make sure we can call this stuff from C++. 6 ** Make sure we can call this stuff from C++.
7 */ 7 */
8 #ifdef __cplusplus 8 #ifdef __cplusplus
9 extern "C" { 9 extern "C" {
10 #endif 10 #endif
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 */ 68 */
69 int sqlite3async_initialize(const char *zParent, int isDefault); 69 int sqlite3async_initialize(const char *zParent, int isDefault);
70 70
71 /* 71 /*
72 ** This function unregisters the asynchronous IO VFS using 72 ** This function unregisters the asynchronous IO VFS using
73 ** sqlite3_vfs_unregister(). 73 ** sqlite3_vfs_unregister().
74 ** 74 **
75 ** On win32 platforms, this function also releases the small number of 75 ** On win32 platforms, this function also releases the small number of
76 ** critical section and event objects created by sqlite3async_initialize(). 76 ** critical section and event objects created by sqlite3async_initialize().
77 */ 77 */
78 void sqlite3async_shutdown(); 78 void sqlite3async_shutdown(void);
79 79
80 /* 80 /*
81 ** This function may only be called when the asynchronous IO VFS is 81 ** This function may only be called when the asynchronous IO VFS is
82 ** installed (after a call to sqlite3async_initialize()). It processes 82 ** installed (after a call to sqlite3async_initialize()). It processes
83 ** zero or more queued write operations before returning. It is expected 83 ** zero or more queued write operations before returning. It is expected
84 ** (but not required) that this function will be called by a different 84 ** (but not required) that this function will be called by a different
85 ** thread than those threads that use SQLite. The "background thread" 85 ** thread than those threads that use SQLite. The "background thread"
86 ** that performs IO. 86 ** that performs IO.
87 ** 87 **
88 ** How many queued write operations are performed before returning 88 ** How many queued write operations are performed before returning
89 ** depends on the global setting configured by passing the SQLITEASYNC_HALT 89 ** depends on the global setting configured by passing the SQLITEASYNC_HALT
90 ** verb to sqlite3async_control() (see below for details). By default 90 ** verb to sqlite3async_control() (see below for details). By default
91 ** this function never returns - it processes all pending operations and 91 ** this function never returns - it processes all pending operations and
92 ** then blocks waiting for new ones. 92 ** then blocks waiting for new ones.
93 ** 93 **
94 ** If multiple simultaneous calls are made to sqlite3async_run() from two 94 ** If multiple simultaneous calls are made to sqlite3async_run() from two
95 ** or more threads, then the calls are serialized internally. 95 ** or more threads, then the calls are serialized internally.
96 */ 96 */
97 void sqlite3async_run(); 97 void sqlite3async_run(void);
98 98
99 /* 99 /*
100 ** This function may only be called when the asynchronous IO VFS is 100 ** This function may only be called when the asynchronous IO VFS is
101 ** installed (after a call to sqlite3async_initialize()). It is used 101 ** installed (after a call to sqlite3async_initialize()). It is used
102 ** to query or configure various parameters that affect the operation 102 ** to query or configure various parameters that affect the operation
103 ** of the asynchronous IO VFS. At present there are three parameters 103 ** of the asynchronous IO VFS. At present there are three parameters
104 ** supported: 104 ** supported:
105 ** 105 **
106 ** * The "halt" parameter, which configures the circumstances under 106 ** * The "halt" parameter, which configures the circumstances under
107 ** which the sqlite3async_run() parameter is configured. 107 ** which the sqlite3async_run() parameter is configured.
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 */ 214 */
215 #define SQLITEASYNC_HALT_NEVER 0 /* Never halt (default value) */ 215 #define SQLITEASYNC_HALT_NEVER 0 /* Never halt (default value) */
216 #define SQLITEASYNC_HALT_NOW 1 /* Halt as soon as possible */ 216 #define SQLITEASYNC_HALT_NOW 1 /* Halt as soon as possible */
217 #define SQLITEASYNC_HALT_IDLE 2 /* Halt when write-queue is empty */ 217 #define SQLITEASYNC_HALT_IDLE 2 /* Halt when write-queue is empty */
218 218
219 #ifdef __cplusplus 219 #ifdef __cplusplus
220 } /* End of the 'extern "C"' block */ 220 } /* End of the 'extern "C"' block */
221 #endif 221 #endif
222 #endif /* ifndef __SQLITEASYNC_H_ */ 222 #endif /* ifndef __SQLITEASYNC_H_ */
223 223
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698