MCPcopy Create free account
hub / github.com/Tencent/phxpaxos / AddTimerWithType

Method AddTimerWithType

src/utils/timer.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void Timer :: AddTimerWithType(const uint64_t llAbsTime, const int iType, uint32_t & iTimerID)
43{
44 iTimerID = m_iNowTimerID++;
45
46 TimerObj tObj(iTimerID, llAbsTime, iType);
47 m_vecTimerHeap.push_back(tObj);
48 push_heap(begin(m_vecTimerHeap), end(m_vecTimerHeap));
49}
50
51const int Timer :: GetNextTimeout() const
52{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected