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:
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
c++11 × 1718c++ × 1703
performance × 138
multithreading × 138
algorithm × 101
template × 100
pointers × 95
beginner × 81
strings × 73
programming-challenge × 64
linked-list × 64
reinventing-the-wheel × 63
template-meta-programming × 63
c++14 × 60
memory-management × 56
object-oriented × 53
vectors × 51
game × 48
design-patterns × 43
tree × 43
boost × 40
queue × 39
graph × 37
iterator × 34
sorting × 32