MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / csl3HandleTimers

Method csl3HandleTimers

Control/L3StateMachine.cpp:629–647  ·  view source on GitHub ↗

Handle timeouts. Return the next timeout or -1 if no timeout is pending.

Source from the content-addressed store, hash-verified

627#if UNUSED
628// Handle timeouts. Return the next timeout or -1 if no timeout is pending.
629int CSL3StateMachine::csl3HandleTimers()
630{
631 ScopedLock lock(gNewTransactionTable.mLock,__FILE__,__LINE__);
632 int nextTimeout = -1;
633 for (NewTransactionMap::iterator itr = gNewTransactionTable.mTable.begin(); itr!=gNewTransactionTable.mTable.end(); ++itr) {
634 TranEntry *tran = itr->second;
635 if (tran->deadOrRemoved()) continue;
636 tran->checkTimers();
637 }
638 for (NewTransactionMap::iterator itr = gNewTransactionTable.mTable.begin(); itr!=gNewTransactionTable.mTable.end(); ++itr) {
639 TranEntry *tran = itr->second;
640 int remaining = tran->remainingTime();
641 if (remaining >= 0) {
642 nextTimeout = (nextTimeout == -1) ? remaining : min(nextTimeout,remaining);
643 }
644 LOG(DEBUG)<<"transaction "<<tran->tranID()<<LOGVAR(nextTimeout);
645 }
646 return nextTimeout;
647}
648#endif
649
650#if UNUSED

Callers

nothing calls this directly

Calls 6

deadOrRemovedMethod · 0.80
checkTimersMethod · 0.80
remainingTimeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
tranIDMethod · 0.45

Tested by

no test coverage detected