mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Add a new xShmBarrier method to the VFS - a shared-memory fence operation.
Implement the same in both unix and win32. Use it to make the WAL subsystem more robust. FossilOrigin-Name: 1bd011c9fed5ef29fb616b4d0a52df3b82221b1f
This commit is contained in:
3
src/os.c
3
src/os.c
@@ -113,6 +113,9 @@ int sqlite3OsShmRelease(sqlite3_file *id){
|
||||
int sqlite3OsShmLock(sqlite3_file *id, int desiredLock, int *pGotLock){
|
||||
return id->pMethods->xShmLock(id, desiredLock, pGotLock);
|
||||
}
|
||||
void sqlite3OsShmBarrier(sqlite3_file *id){
|
||||
id->pMethods->xShmBarrier(id);
|
||||
}
|
||||
int sqlite3OsShmClose(sqlite3_file *id, int deleteFlag){
|
||||
return id->pMethods->xShmClose(id, deleteFlag);
|
||||
}
|
||||
|
Reference in New Issue
Block a user