Michael Eischer 13fbc96ed3 lock: Synchronize Refresh() and Stale()
The lock test creates a lock and checks that it is not stale. However,
it is possible that the lock is refreshed concurrently, which updates
the lock timestamp. Checking the timestamp in `Stale()` without
synchronization results in a data race. Thus add a lock to prevent
concurrent accesses.
2022-11-11 21:52:53 +01:00
..
2022-10-16 10:50:39 +02:00
2017-07-24 17:43:32 +02:00
2022-08-18 20:15:38 +02:00
2022-10-16 10:50:39 +02:00
2022-03-28 22:23:47 +02:00
2022-03-28 22:23:47 +02:00
2022-01-25 18:05:56 -08:00
2022-03-28 22:23:47 +02:00
2022-10-16 10:50:39 +02:00
2022-08-05 23:46:46 +02:00