GitXplorerGitXplorer
m

readwrite_filelock

public
1 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
b9c81e7c74a3698ec3a6d179f21968fd3b1f33ca

first working commit

mmnoukhov committed 5 years ago
Verified
e628bb82ca7665405f87e0477d0460fa8be6b02a

Initial commit

mmnoukhov committed 5 years ago

README

The README file for this repository.

Read/Write FileLock

Wrapper on filelock to allow for multiple read accesses but maintain a write lock. Currently implements a fair lock with neither write nor read priority.

Inspired by the very nice readerwriterlock

Why

This is useful when you want to use locks in a distributed setting without being ableto use notify or have a centralized process that maintain the number of active readers

How to use

The interface is exactly like FileLock