gterm/util.go

14 lines
150 B
Go

package gterm
import "sync"
var curCtr = 0
var ctrLck sync.Mutex
func ctr() int {
ctrLck.Lock()
defer ctrLck.Unlock()
curCtr++
return curCtr
}