Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Changes to the interface design for the xShmLock method of the VFS. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | wal |
Files: | files | file ages | folders |
SHA1: |
348409de26eafe12f5cb1236e8e167a4 |
User & Date: | drh 2010-04-28 17:21:33.000 |
Context
2010-04-28
| ||
17:49 | Merge two "wal" leaves. (check-in: 13d2d5a66e user: dan tags: wal) | |
17:21 | Changes to the interface design for the xShmLock method of the VFS. (check-in: 348409de26 user: drh tags: wal) | |
14:42 | Rename the sqlite3_log_hook() to sqlite3_wal_hook(). Added comments to wal.h. (check-in: bbc385111b user: drh tags: wal) | |
Changes
Changes to src/os_unix.c.
︙ | ︙ | |||
4693 4694 4695 4696 4697 4698 4699 | } /* ** Create or release a lock on shared memory. */ static int unixShmLock( sqlite3_shm *pSharedMem, /* Pointer from unixShmOpen() */ | | | | < < < < < < < < < < < < < < < | | 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 | } /* ** Create or release a lock on shared memory. */ static int unixShmLock( sqlite3_shm *pSharedMem, /* Pointer from unixShmOpen() */ int desiredLock, /* The locking state desired */ int *pGotLock, /* The locking state actually obtained */ int shouldBlock /* Block for the lock if true and possible */ ){ return SQLITE_OK; } /* ** Delete a shared-memory segment from the system. */ static int unixShmDelete(sqlite3_vfs *pVfs, const char *zName){ return pVfs->xDelete(pVfs, zName, 0); |
︙ | ︙ |
Changes to src/sqlite.h.in.
︙ | ︙ | |||
844 845 846 847 848 849 850 | ** definition. Those that follow are added in version 2 or later */ int (*xShmOpen)(sqlite3_vfs*, const char *zName, sqlite3_shm**); int (*xShmSize)(sqlite3_shm*, int reqSize, int *pNewSize, char**); int (*xShmRelease)(sqlite3_shm*); int (*xShmPush)(sqlite3_shm*); int (*xShmPull)(sqlite3_shm*); | | | 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 | ** definition. Those that follow are added in version 2 or later */ int (*xShmOpen)(sqlite3_vfs*, const char *zName, sqlite3_shm**); int (*xShmSize)(sqlite3_shm*, int reqSize, int *pNewSize, char**); int (*xShmRelease)(sqlite3_shm*); int (*xShmPush)(sqlite3_shm*); int (*xShmPull)(sqlite3_shm*); int (*xShmLock)(sqlite3_shm*, int desiredLock, int *gotLock, int shouldBlock); int (*xShmClose)(sqlite3_shm*); int (*xShmDelete)(sqlite3_vfs*, const char *zName); int (*xRename)(sqlite3_vfs*, const char *zOld, const char *zNew, int dirSync); int (*xCurrentTimeInt64)(sqlite3_vfs*, sqlite3_int64*); /* ** The methods above are in versions 1 and 2 of the sqlite_vfs object. ** New fields may be appended in figure versions. The iVersion |
︙ | ︙ | |||
876 877 878 879 880 881 882 | #define SQLITE_ACCESS_EXISTS 0 #define SQLITE_ACCESS_READWRITE 1 #define SQLITE_ACCESS_READ 2 /* ** CAPI3REF: Flags for the xShmLock VFS method ** | | | | | < < | > | > | | | > > | 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 | #define SQLITE_ACCESS_EXISTS 0 #define SQLITE_ACCESS_READWRITE 1 #define SQLITE_ACCESS_READ 2 /* ** CAPI3REF: Flags for the xShmLock VFS method ** ** These integer constants define the various locking states that ** an sqlite3_shm object can be in. The SQLITE_SHM_QUERY integer ** is not a valid data - it is a constant pasted to the ** sqlite3_vfs.xShmLock() method for querying the current lock ** state. */ #define SQLITE_SHM_UNLOCK 0 #define SQLITE_SHM_READ_PREFIX 1 #define SQLITE_SHM_READ_FULL 2 #define SQLITE_SHM_WRITE 3 #define SQLITE_SHM_PENDING 4 #define SQLITE_SHM_CHECKPOINT 5 #define SQLITE_SHM_RECOVER 6 #define SQLITE_SHM_QUERY (-1) /* ** CAPI3REF: Initialize The SQLite Library ** ** ^The sqlite3_initialize() routine initializes the ** SQLite library. ^The sqlite3_shutdown() routine ** deallocates any resources that were allocated by sqlite3_initialize(). |
︙ | ︙ |