Hot answers tagged

4 votes
Accepted

Class for locking shared disk directory

This is not safe Let's consider two threads that each call tryToLock() at the same time, and there is an expired lockfile on the disk: ...
G. Sliepen's user avatar
  • 50.4k
4 votes

Class for locking shared disk directory

spec at first glance works without errors. I'm willing to believe that's true. You've not made it easy to verify it at second glance. What I'm looking for is a concise specification of intended ...
J_H's user avatar
  • 16.7k

Only top scored, non community-wiki answers of a minimum length are eligible