Provides minisql platform lock facilities for this project.
Package: minisql.platform.lock
Reachable from entry: yes
minisql/platform/file.mlasfile_api→ src/minisql/platform/file.mlminisql/platform/file_win32.mlasnative→ src/minisql/platform/file_win32.ml
function acquireExclusive(file, failImmediately)Acquires the exclusive. Inputs: file, failImmediately. Returns the produced value or propagates a structured error from validation or delegated operations.
| Parameter | Type | Default | Description |
|---|---|---|---|
file |
dynamic |
— | file value consumed by this operation. |
failImmediately |
dynamic |
— | failImmediately value consumed by this operation. |
function acquireShared(file, failImmediately)Acquires the shared. Inputs: file, failImmediately. Returns the produced value or propagates a structured error from validation or delegated operations.
| Parameter | Type | Default | Description |
|---|---|---|---|
file |
dynamic |
— | file value consumed by this operation. |
failImmediately |
dynamic |
— | failImmediately value consumed by this operation. |
function componentName()Performs the componentName operation for the minisql platform lock module. Takes no caller-supplied inputs. Returns the produced value or propagates a structured error from validation or delegated operations.
function fail(code, operation, message)Performs the fail operation for the minisql platform lock module. Inputs: code, operation, message. Returns the produced value or propagates a structured error from validation or delegated operations.
| Parameter | Type | Default | Description |
|---|---|---|---|
code |
dynamic |
— | code value consumed by this operation. |
operation |
dynamic |
— | operation value consumed by this operation. |
message |
dynamic |
— | Human-readable message associated with the operation. |
- minisql.platform.lock.FileLock — struct
const INVALID_ARGUMENT = 9001Process-visible file-region locks used to coordinate database readers and
function isImplemented()Returns whether implemented satisfies the condition required by the minisql platform lock module. Takes no caller-supplied inputs. Returns a boolean result; invalid input or delegated failures are reported as structured errors.
const LOCK_CONFLICT = 9007Defines the lock conflict constant used by the minisql platform lock module.
function release(lock)Performs the release operation for the minisql platform lock module. Inputs: lock. Returns the operation result and propagates validation, storage, or platform errors unchanged.
| Parameter | Type | Default | Description |
|---|---|---|---|
lock |
dynamic |
— | lock value consumed by this operation. |
function targetMilestone()Performs the targetMilestone operation for the minisql platform lock module. Takes no caller-supplied inputs. Returns the produced value or propagates a structured error from validation or delegated operations.