1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Expand the header comment to clarify the purpose for the

sqlite3MemoryBarrier() function.

FossilOrigin-Name: b89495ae09aa0e9652475b2ba1943dfd87c73e07
This commit is contained in:
drh
2015-09-26 03:23:29 +00:00
parent 17db155fed
commit 539482b76a
4 changed files with 14 additions and 10 deletions

View File

@@ -78,7 +78,9 @@ static int winMutexNotheld(sqlite3_mutex *p){
#endif
/*
** Try to provide a memory barrier operation, needed for initialization only.
** Try to provide a memory barrier operation, needed for initialization
** and also for the xShmBarrier method of the VFS in cases when SQLite is
** compiled without mutexes (SQLITE_THREADSAFE=0).
*/
void sqlite3MemoryBarrier(void){
#if defined(SQLITE_MEMORY_BARRIER)