Add mutex logging

This commit is contained in:
Audrius Butkevicius
2015-04-22 23:54:31 +01:00
parent 9ee3541655
commit 433b923ea7
31 changed files with 277 additions and 78 deletions

View File

@@ -6,7 +6,7 @@
package model
import "sync"
import "github.com/syncthing/syncthing/internal/sync"
type jobQueue struct {
progress []string
@@ -15,7 +15,9 @@ type jobQueue struct {
}
func newJobQueue() *jobQueue {
return &jobQueue{}
return &jobQueue{
mut: sync.NewMutex(),
}
}
func (q *jobQueue) Push(file string) {