Skip to main content

Two-phase locking via lockfiles

Project description

Two-phase locking with lockfiles

  • Initial release
  • Currently supports Linux/POSIX only
  • Documentation coming soon

Relies on modifying the number of open file descriptors for a lockfile.

Currently implements the 2PL lock compatibility table:

Lock type read-lock write-lock
read-lock Y N
write-lock N N

Read locks are called "concurrent," and write locks are called "exclusive."

The API, the naming, and the implementation are all subjects to change until the first stable release (i.e. until version 1.0.0, or earlier if explicitly stated).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twpl-0.1.1.tar.gz (17.7 kB view details)

Uploaded Source

File details

Details for the file twpl-0.1.1.tar.gz.

File metadata

  • Download URL: twpl-0.1.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for twpl-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0ea0deb9c55a5604ebb1e4588333fd50a321cf5e950fda17154755bb66bbd4e3
MD5 a664f4b5b1c0c3aff5b526d801a89061
BLAKE2b-256 d3d47c2541a192b99be052bd8dbfd214d86aacccda3ffe365c0d11bc6425b82c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page