package/python-lockfile: new package
authorAdam Duskett <aduskett@greenlots.com>
Mon, 25 Nov 2019 19:38:49 +0000 (11:38 -0800)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 24 Dec 2019 14:45:57 +0000 (15:45 +0100)
commite5cc2ac91da7197d14298b2344dbaf2a89b71cdd
treecc8e2ba2bb6366ab34e838d5f471f32cb6c976c2
parentd218f0ee69405fddd227b2db173a56e01a413d71
package/python-lockfile: new package

The lockfile package exports a LockFile class which provides a
simple API for locking files. Unlike the Windows
msvcrt.locking function, the fcntl.lockf and flock functions,
and the deprecated posixfile module, the API is identical
across both Unix (including Linux and Mac) and Windows
platforms.

The lock mechanism relies on the atomic nature of the link
(on Unix) and mkdir (on Windows) system calls. An
implementation based on SQLite is also provided, more as a
demonstration of the possibilities it provides than as
production-quality code.

Signed-off-by: Adam Duskett <aduskett@greenlots.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
DEVELOPERS
package/Config.in
package/python-lockfile/Config.in [new file with mode: 0644]
package/python-lockfile/python-lockfile.hash [new file with mode: 0644]
package/python-lockfile/python-lockfile.mk [new file with mode: 0644]