| 124 | } |
| 125 | |
| 126 | void CCppNetImpl::RemoveTimer(uint64_t timer_id) { |
| 127 | auto iter = _timer_actions_map.find(timer_id); |
| 128 | if (iter != _timer_actions_map.end()) { |
| 129 | auto actions = iter->second.lock(); |
| 130 | if (actions) { |
| 131 | actions->RemoveTimerEvent(timer_id); |
| 132 | } |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | void CCppNetImpl::SetAcceptCallback(const connection_call_back& func) { |
| 137 | _accept_call_back = func; |
nothing calls this directly
no test coverage detected