C# Class LockingStrategy, csharp-sqlite

Basic locking strategy for Console/Winform applications
Datei anzeigen Open project: koush/csharp-sqlite Class Usage Examples

Public Methods

Method Description
LockFile ( sqlite3_file, pFile, long offset, long length ) : void
SharedLockFile ( sqlite3_file, pFile, long offset, long length ) : int
UnlockFile ( sqlite3_file, pFile, long offset, long length ) : void

Private Methods

Method Description
LockFileEx ( IntPtr hFile, uint dwFlags, uint dwReserved, uint nNumberOfBytesToLockLow, uint nNumberOfBytesToLockHigh, [ lpOverlapped ) : bool

Method Details

LockFile() public method

public LockFile ( sqlite3_file, pFile, long offset, long length ) : void
pFile sqlite3_file,
offset long
length long
return void

SharedLockFile() public method

public SharedLockFile ( sqlite3_file, pFile, long offset, long length ) : int
pFile sqlite3_file,
offset long
length long
return int

UnlockFile() public method

public UnlockFile ( sqlite3_file, pFile, long offset, long length ) : void
pFile sqlite3_file,
offset long
length long
return void