mikey179/vfsStream — pull request #41 by arvenil (2012-08-25 18:38:43+00:00)
Title: https://github.com/mikey179/vfsStream/issues/40

Proposition of proper flock implementation in vfsStream. Things done:
- each flock call should firstly release lock for current handler,
so operations on just one file handler should be always successful
- file with exclusive lock on one handler can't be exclusively locked on other file handler
- file with shared lock on one handler can't be exclusively locked on other file handler
- file with exclusive lock on one handler can't be shared locked on other file handler
- you can make multiple shared locks using multiple file handlers
- added some additional tests