Thomas Waldmann
|
230e0feac6
|
migrate locks to child PID when daemonize is used
(cherry picked from commit 09e3a02fbc)
|
2017-08-14 00:25:51 +02:00 |
|
Marian Beermann
|
928f6e0ca4
|
repository: fix spurious, empty lock.roster on InvalidRepository exception
|
2016-08-18 00:54:12 +02:00 |
|
Thomas Waldmann
|
d3d51e12ea
|
rename UpgradableLock to Lock
lock upgrading is troublesome / may deadlock, do not advertise it.
|
2016-08-05 19:06:09 +02:00 |
|
Thomas Waldmann
|
26007c0162
|
add Lock.got_exclusive_lock
|
2016-08-05 18:52:20 +02:00 |
|
Thomas Waldmann
|
4b339f5d69
|
cosmetic source cleanup (flake8)
|
2016-01-30 21:32:45 +01:00 |
|
Thomas Waldmann
|
f19e95fcf7
|
implement --lock-wait, support timeout for UpgradableLock, fixes #210
also: simplify exceptions / exception handling
|
2015-11-21 15:34:51 +01:00 |
|
Thomas Waldmann
|
2deb520e67
|
locking code: extract timeout/sleep code into reusable TimeoutTimer class
|
2015-07-13 16:45:18 +02:00 |
|
Thomas Waldmann
|
e4c519b1e9
|
new locking code
exclusive locking by atomic mkdir fs operation
on top of that, shared (read) locks and exclusive (write) locks using a json roster.
|
2015-07-13 13:55:28 +02:00 |
|
Thomas Waldmann
|
434dac0e48
|
move locking code to own module, same for locking tests
fix imports, no other changes.
|
2015-07-12 23:41:52 +02:00 |
|