lockfile
Version, currently master branch1 version
- master branchlatestAug 24, 2020
github.com/wyhaines/lockfile.cr
This shard implements a portable lockfile, for use with the Crystal Language.
Installation
# Add this to your shard.yml
dependencies:
lockfile:
github: wyhaines/lockfile.cr
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.35.1- License
- MIT
- Author
- your-name-here <your-email-here>
Dependencies
This version declares no dependencies.
README
lockfile
This shard implements a portable lockfile implementation. It is a port, with some modernizations, of the implementation found in the IOWA web framework for Ruby, which was, in turn, originally based on lockfile.rb from Ara Howard.
https://github.com/wyhaines/iowa/blob/master/src/iowa/Lockfile.rb
It uses links to implement atomic, portable locking, but it can fall back on the flock() call if ran in an environment where linking doesn't seem to work. This is the default mode of operation. If one specifically wants it to use only flock, or only links, that can be specified when a lockfile is created.
Installation
-
Add the dependency to your
shard.yml:dependencies: lockfile: github: wyhaines/lockfile -
Run
shards install
Usage
require "lockfile"
TODO: Write usage instructions here
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/your-github-user/lockfile/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Kirk Haines - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Aug 24, 2020
- Crystal
0.35.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/wyhaines/lockfile.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 16, 2026
- Synced
- Aug 16, 2026
- Versions
- 1