MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / addTimeoutEvent

Method addTimeoutEvent

libapp2sys/src/main/cpp/udp.h:206–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204 }
205
206 int addTimeoutEvent(TimeoutEvent *timeoutEvent) {
207 std::list<TimeoutEvent *>::iterator it;
208 for (it = m_eventTimerList.begin(); it != m_eventTimerList.end(); it++) {
209 if (timeoutEvent->timeout < (*it)->timeout) {
210 break;
211 }
212 }
213 m_eventTimerList.insert(it, timeoutEvent);
214 return 0;
215 }
216
217 int processTimeout(TimeoutEvent *timeoutEvent) {
218 const int64_t iSender = sockaddrToint64(timeoutEvent->toaddr);

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected