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.3.tar.gz (18.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: twpl-0.1.3.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.0

File hashes

Hashes for twpl-0.1.3.tar.gz
Algorithm Hash digest
SHA256 12277e76ea670ec8207c4c294657fac7dc20cee079a7ba073f08be77882803e8
MD5 7b478533b94226e4f55f74c19b032a88
BLAKE2b-256 d77cf1d4f4975036d6a08976f3e8407588c1c36283802eed6aee200aa16ba27b

See more details on using hashes here.

Supported by

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