blob: d98c7cba98f258a97d7816ab97b13079b353f92f (
plain)
1
2
3
4
5
6
7
8
9
|
This is a Ruby module which provides file locking mechanism.
The module FileLock implements two classes: LockFile and LockedFile;
the class LockFile deals with so-called lockfiles, and the class
LockedFile offer a high-level interface to deal with both regular
files and lockfiles at the same time.
To be portable, a small C extension is used to minimize the time
between existence check of a lockfile and its creation.
|