示例#1
0
文件: atomic.go 项目: vozhyk-/gohan
//CounterValue makes thread safe counter
func CounterValue(counter *util.Counter) int {
	return int(counter.Value())
}
示例#2
0
文件: atomic.go 项目: vozhyk-/gohan
//CounterAdd makes thread safe counter
func CounterAdd(counter *util.Counter, value int) {
	counter.Add(int64(value))
}