1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +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

@@ -81,7 +81,9 @@ static int pthreadMutexNotheld(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 implementation of xShmBarrier in the VFS in cases
** where SQLite is compiled without mutexes.
*/
void sqlite3MemoryBarrier(void){
#if defined(SQLITE_MEMORY_BARRIER)