diff options
author | stephan <stephan@noemail.net> | 2025-03-01 23:44:11 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2025-03-01 23:44:11 +0000 |
commit | c9cc6a5474262666e95b63dd7d1ee63e52e25bf1 (patch) | |
tree | 40bcd417ff1ffc01d26757d46e8b6a87fefe8469 /ext/wasm/api/sqlite3-wasm.c | |
parent | 8346ceef5acfb28d57c0ae3dc0557ccc656acc60 (diff) | |
download | sqlite-c9cc6a5474262666e95b63dd7d1ee63e52e25bf1.tar.gz sqlite-c9cc6a5474262666e95b63dd7d1ee63e52e25bf1.zip |
Use SQLITE_EXTRA_INIT_MUTEXED instead of SQLITE_EXTRA_INIT for the SQLITE_WASM_EXTRA_INIT feature, as suggested in [forum:14183b98fc0b1dea|forum post 14183b98fc0b1dea]. This doesn't make a functional difference now - this is in the name of future-proofing against eventual threading support in wasm.
FossilOrigin-Name: 46479c2e30b9676e0fa8da117ba67f673671fb340c9bea38ece19a1b2371a57b
Diffstat (limited to 'ext/wasm/api/sqlite3-wasm.c')
-rw-r--r-- | ext/wasm/api/sqlite3-wasm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/wasm/api/sqlite3-wasm.c b/ext/wasm/api/sqlite3-wasm.c index 7f24ca1c1..d9f0f08eb 100644 --- a/ext/wasm/api/sqlite3-wasm.c +++ b/ext/wasm/api/sqlite3-wasm.c @@ -128,7 +128,9 @@ #endif #ifdef SQLITE_WASM_EXTRA_INIT -# define SQLITE_EXTRA_INIT sqlite3_wasm_extra_init +/* SQLITE_EXTRA_INIT vs SQLITE_EXTRA_INIT_MUTEXED: +** see https://sqlite.org/forum/forumpost/14183b98fc0b1dea */ +# define SQLITE_EXTRA_INIT_MUTEXED sqlite3_wasm_extra_init #endif /* |