Apply .gitignore rules

This commit is contained in:
皮蛋13361098506
2025-01-06 16:21:36 +08:00
parent 1b77f62820
commit ccd2c530cf
580 changed files with 69806 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
package sqlAsyncMgr
import (
"sync"
)
// 标识内容模型对象
type StatisticModel struct {
// 锁对象
m sync.Mutex
// 标识
IdentityId string
// 待同步的数量
Count int32
}
// AddCount 添加指定数量
func (this *StatisticModel) AddCount(addcount int32) {
this.m.Lock()
defer this.m.Unlock()
this.Count = this.Count + addcount
}
// ReduceCount 添加指定数量
func (this *StatisticModel) ReduceCount(recount int32) {
this.m.Lock()
defer this.m.Unlock()
this.Count = this.Count - recount
}
// newStatisticModel 创建新StatisticModel对象
func newStatisticModel(ident string) *StatisticModel {
return &StatisticModel{
IdentityId: ident,
}
}