MCPcopy Create free account
hub / github.com/caozhiyi/CppNet / RemoveTimer

Method RemoveTimer

net/CppNetImpl.cpp:126–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126void 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
136void CCppNetImpl::SetAcceptCallback(const connection_call_back& func) {
137 _accept_call_back = func;

Callers

nothing calls this directly

Calls 1

RemoveTimerEventMethod · 0.45

Tested by

no test coverage detected