1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Implement probabilistic reader/writer locks under windows so that windows

can have multiple simultaneous readers. (CVS 714)

FossilOrigin-Name: 2127de3f03537ef2f18120e773f7603e0984ff81
This commit is contained in:
drh
2002-08-14 12:56:54 +00:00
parent c330af1dca
commit d1efac52d5
6 changed files with 96 additions and 38 deletions

View File

@@ -57,8 +57,8 @@
#include <winbase.h>
typedef struct OsFile OsFile;
struct OsFile {
HANDLE h;
int locked;
HANDLE h; /* Handle for accessing the file */
int locked; /* 0: unlocked, <0: write lock, >0: read lock */
};
# define SQLITE_TEMPNAME_SIZE (MAX_PATH+50)
# define SQLITE_MIN_SLEEP_MS 1