mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 06:46:34 +00:00
6c514adb8a
The counter value needs to be aligned to 64 bit in memory for the atomic functions to work on some platform (such as 32 bit ARM). The atomic package says in its documentation: > These functions require great care to be used correctly. Except for > special, low-level applications, synchronization is better done with > channels or the facilities of the sync package. This commit replaces the atomic functions with a simple sync.Mutex, so we don't have to care about alignment. |
||
---|---|---|
.. | ||
counter_test.go | ||
counter.go | ||
signals_bsd.go | ||
signals_sysv.go | ||
signals_windows.go |