Codebase list golang-github-vbauerster-mpb / 9434b2d
some useful comments Vladimir Bauer 8 years ago
1 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
3030 priority int
3131 index int
3232
33 // the flag is set from Progress monitor goroutine only
33 // completed is set from master Progress goroutine only
3434 completed bool
3535
3636 operateState chan func(*bState)
37 done chan struct{}
38 shutdown chan struct{}
39
40 // it's guaranteed that cacheState isn't nil, after done is closed
37 // done is closed by Bar's goroutine, after cacheState is written
38 done chan struct{}
39 // shutdown is closed from master Progress goroutine only
40 shutdown chan struct{}
41
4142 cacheState *bState
4243 }
4344