mirror of
https://github.com/gilbertchen/duplicacy
synced 2025-12-10 21:33:19 +00:00
Rearrange struct members to avoid 64-bit int alignment issues
This commit is contained in:
@@ -27,11 +27,11 @@ type ChunkOperatorTask struct {
|
|||||||
|
|
||||||
// ChunkOperator is capable of performing multi-threaded operations on chunks.
|
// ChunkOperator is capable of performing multi-threaded operations on chunks.
|
||||||
type ChunkOperator struct {
|
type ChunkOperator struct {
|
||||||
|
numberOfActiveTasks int64 // The number of chunks that are being operated on
|
||||||
storage Storage // This storage
|
storage Storage // This storage
|
||||||
threads int // Number of threads
|
threads int // Number of threads
|
||||||
taskQueue chan ChunkOperatorTask // Operating goroutines are waiting on this channel for input
|
taskQueue chan ChunkOperatorTask // Operating goroutines are waiting on this channel for input
|
||||||
stopChannel chan bool // Used to stop all the goroutines
|
stopChannel chan bool // Used to stop all the goroutines
|
||||||
numberOfActiveTasks int64 // The number of chunks that are being operated on
|
|
||||||
|
|
||||||
fossils []string // For fossilize operation, the paths of the fossils are stored in this slice
|
fossils []string // For fossilize operation, the paths of the fossils are stored in this slice
|
||||||
fossilsLock *sync.Mutex // The lock for 'fossils'
|
fossilsLock *sync.Mutex // The lock for 'fossils'
|
||||||
|
|||||||
Reference in New Issue
Block a user