优化rpc垃圾回收

This commit is contained in:
boyce
2020-10-28 19:40:54 +08:00
parent 7de290b553
commit 54f1db7641
2 changed files with 24 additions and 10 deletions

View File

@@ -210,4 +210,7 @@ func (slf *Service) RegEventReciverFunc(eventType event.EventType,reciver event.
func (slf *Service) UnRegEventReciverFun(eventType event.EventType,reciver event.IEventHandler){
slf.eventProcessor.UnRegEventReciverFun(eventType,reciver)
}
func (slf *Service) IsSingleCoroutine() bool {
return slf.gorouterNum == 1
}