()
| 597 | } |
| 598 | |
| 599 | func (c *KcpConnection) isClosed() bool { |
| 600 | return atomic.LoadInt32(&c.closed) != 0 |
| 601 | } |
| 602 | |
| 603 | func (c *KcpConnection) setClose() bool { |
| 604 | return atomic.CompareAndSwapInt32(&c.closed, 0, 1) |
no outgoing calls
no test coverage detected