Closed mini-bix closed 4 years ago
func (s Skeleton) AsynCall(server chanrpc.Server, id interface{}, args ...interface{}) { if s.AsynCallLen == 0 { panic("invalid AsynCallLen") }
s.client.Attach(server) s.client.AsynCall(id, args...)
} 并发情况下同时调用AsynCall,s.client.AsynCall(id, args...)会不会没执行被其他协程调用s.client.Attach(server)导致错误,s.client.AsynCall(id, args...)中pendingAsynCall也没加锁是否会有问题呢?
func (s Skeleton) AsynCall(server chanrpc.Server, id interface{}, args ...interface{}) { if s.AsynCallLen == 0 { panic("invalid AsynCallLen") }
} 并发情况下同时调用AsynCall,s.client.AsynCall(id, args...)会不会没执行被其他协程调用s.client.Attach(server)导致错误,s.client.AsynCall(id, args...)中pendingAsynCall也没加锁是否会有问题呢?