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

Import common changes from the mutex initialization branch.

FossilOrigin-Name: 334720c01722478af0d3dfd6fe8bafd88ba09f49
This commit is contained in:
mistachkin
2015-09-12 18:57:45 +00:00
parent b3366b99c8
commit 04abf0878f
5 changed files with 22 additions and 13 deletions

View File

@@ -86,7 +86,7 @@ static int pthreadMutexNotheld(sqlite3_mutex *p){
void sqlite3MemoryBarrier(void){
#if defined(SQLITE_MEMORY_BARRIER)
SQLITE_MEMORY_BARRIER;
#elif defined(__GNUC__)
#elif defined(__GNUC__) && GCC_VERSION>=4001000
__sync_synchronize();
#endif
}