mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 23:06:32 +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. |
||
---|---|---|
.. | ||
json | ||
progress | ||
table | ||
termstatus | ||
backup.go | ||
message.go | ||
stdio_wrapper_test.go | ||
stdio_wrapper.go |