Crate bitcoinleveldb_posix

Source

Modules§

posix_env
posix_lock_table
singleton_env

Structs§

PosixEnv

PosixFileLock
| Instances are thread-safe because | they are immutable. |
PosixLockTable
| Tracks the files locked by | PosixEnv::LockFile(). | | We maintain a separate set instead of relying | on fcntl(F_SETLK) because fcntl(F_SETLK) does | not provide any protection against multiple | uses from the same process. | | Instances are thread-safe because all member | data is guarded by a mutex.
PosixMmapReadableFile
| Implements random read access in a file using | mmap(). | | Instances of this class are thread-safe, as | required by the RandomAccessFile API. Instances | are immutable and Read() only calls thread-safe | library functions.
PosixRandomAccessFile
| Implements random read access in a file using | pread(). | | Instances of this class are thread-safe, as | required by the RandomAccessFile API. Instances | are immutable and Read() only calls thread-safe | library functions.
PosixSequentialFile
| Implements sequential read access in a file | using read(). | | Instances of this class are thread-friendly but | not thread-safe, as required by the | SequentialFile API.
PosixWritableFile

SingletonEnv
| Wraps an Env instance whose destructor | is never created. | | Intended usage: | | ———– | @code | | using PlatformSingletonEnv = SingletonEnv; | c_void ConfigurePosixEnv(int param) { | PlatformSingletonEnv::AssertEnvNotInitialized(); | // set global configuration flags. | } | Env* Env::Default() { | static PlatformSingletonEnv default_env; | return default_env.env(); | } |

Constants§

DEFAULT_MMAP_LIMIT
| Up to 4096 mmap regions for 64-bit binaries; | none for 32-bit. |
OPEN_BASE_FLAGS
WRITABLE_FILE_BUFFER_SIZE

Functions§

lock_or_unlock
max_mmaps
| Return the maximum number of concurrent | mmaps. |
max_open_files
| Return the maximum number of read-only | files to keep open. |
posix_error

Type Aliases§

PosixDefaultEnv