1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Add a memory barrier to the mutex initialization logic, try to work around

an issue reported by WebKit.

FossilOrigin-Name: 11a9a786ec06403addb47f5c6fb142b382fae522
This commit is contained in:
drh
2015-09-06 02:51:04 +00:00
parent 0b8d255c37
commit 6081c1dbdf
7 changed files with 33 additions and 11 deletions

View File

@@ -64,6 +64,7 @@
#define sqlite3MutexAlloc(X) ((sqlite3_mutex*)8)
#define sqlite3MutexInit() SQLITE_OK
#define sqlite3MutexEnd()
#define sqlite3MemoryBarrier()
#define MUTEX_LOGIC(X)
#else
#define MUTEX_LOGIC(X) X