| 255 | } |
| 256 | |
| 257 | bool CCppNetImpl::RemoveSocket(uint64_t handle) { |
| 258 | std::unique_lock<std::mutex> lock(_mutex); |
| 259 | auto iter = _socket_map.find(handle); |
| 260 | if (iter != _socket_map.end()) { |
| 261 | _socket_map.erase(iter); |
| 262 | return true; |
| 263 | } |
| 264 | return false; |
| 265 | } |
| 266 | |
| 267 | uint32_t CCppNetImpl::GetThreadNum() { |
| 268 | return (uint32_t)_thread_vec.size(); |
nothing calls this directly
no outgoing calls
no test coverage detected