Codebase list golang-github-vbauerster-mpb / bef91d1
fix dead lock Vladimir Bauer 3 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
4444 case h_push:
4545 data := req.data.(*pushData)
4646 heap.Push(&bHeap, data.bar)
47 sync = data.sync
47 if !sync {
48 sync = data.sync
49 }
4850 case h_sync:
4951 if sync || l != bHeap.Len() {
5052 pMatrix = make(map[int][]chan int)
5860 aMatrix[i] = append(aMatrix[i], ch)
5961 }
6062 }
63 sync = false
64 l = bHeap.Len()
6165 }
62 l = bHeap.Len()
6366 syncWidth(pMatrix)
6467 syncWidth(aMatrix)
6568 case h_iter: