优化rpc内存池

This commit is contained in:
boyce
2021-01-08 10:21:54 +08:00
parent f88423c7ab
commit 7e288ccdd8
5 changed files with 38 additions and 49 deletions

View File

@@ -120,6 +120,13 @@ func (t *Timer) GetName() string{
}
func (t *Timer) Reset(){
t.name = ""
t.cancelled = false
t.C = nil
t.interval = 0
t.cb = nil
t.AdditionData = nil
t.rOpen = false
}
func (t *Timer) IsRef()bool{